diff options
| author | oster <oster@NetBSD.org> | 2000-06-03 16:44:43 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2000-06-03 16:44:43 +0000 |
| commit | 2c127bf249e52441a2159241b94e63d728062935 (patch) | |
| tree | 6cd10a33aa1eacf57aade33f6326534c604c5170 /sys/dev/raidframe | |
| parent | d7e34999be6d5ca2885d4dd47f6380fbe6676724 (diff) | |
Allow getting a component label from a spare disk.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 5e8e0794872..5ab44f135bd 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.89 2000/06/01 00:50:01 matt Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.90 2000/06/03 16:44:43 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -984,7 +984,8 @@ raidioctl(dev, cmd, data, flag, p) column = clabel->column; if ((row < 0) || (row >= raidPtr->numRow) || - (column < 0) || (column >= raidPtr->numCol)) { + (column < 0) || (column >= raidPtr->numCol + + raidPtr->numSpare)) { RF_Free( clabel, sizeof(RF_ComponentLabel_t)); return(EINVAL); } |
