From 1231bd6d14cd0b0bde80e0b5e49a9da2b94c157e Mon Sep 17 00:00:00 2001 From: oster Date: Sat, 4 Mar 2000 06:03:21 +0000 Subject: Umm... don't allow attempts to configure the same RAID device multiple times. The check was there, but the return() was missing :( --- sys/dev/raidframe/rf_netbsdkintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index b29685d042e..e2c053a6710 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.65 2000/03/03 01:46:36 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.66 2000/03/04 06:03:21 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -841,6 +841,7 @@ raidioctl(dev, cmd, data, flag, p) if (raidPtr->valid) { /* There is a valid RAID set running on this unit! */ printf("raid%d: Device already configured!\n",unit); + return(EINVAL); } /* copy-in the configuration information */ -- cgit