diff options
| author | oster <oster@NetBSD.org> | 2000-03-04 06:03:21 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2000-03-04 06:03:21 +0000 |
| commit | 1231bd6d14cd0b0bde80e0b5e49a9da2b94c157e (patch) | |
| tree | a4863f6211793c99cf3e257075721739bd012e78 /sys/dev/raidframe | |
| parent | 3b06f6f887b50d759b6aeefd3d3c00218bc29dda (diff) | |
Umm... don't allow attempts to configure the same RAID device multiple times.
The check was there, but the return() was missing :(
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |
