Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe RAIDframe must be initialized for the RAID...
details: https://anonhg.NetBSD.org/src/rev/b642921c2e2c
branches: trunk
changeset: 369686:b642921c2e2c
user: oster <oster%NetBSD.org@localhost>
date: Sun Aug 28 00:26:04 2022 +0000
description:
RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT
and RAIDFRAME_SHUTDOWN ioctls.
XXX Pullup-9
Reported-by: syzbot+1c20fcbe34d72cd7fbda%syzkaller.appspotmail.com@localhost
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 3e5508ee4a33 -r b642921c2e2c sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sat Aug 27 23:24:37 2022 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sun Aug 28 00:26:04 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.408 2022/08/10 01:16:38 mrg Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.409 2022/08/28 00:26:04 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.408 2022/08/10 01:16:38 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.409 2022/08/28 00:26:04 oster Exp $");
#ifdef _KERNEL_OPT
#include "opt_raid_autoconfig.h"
@@ -1127,7 +1127,9 @@
case RAIDFRAME_REWRITEPARITY:
case RAIDFRAME_SET_AUTOCONFIG:
case RAIDFRAME_SET_COMPONENT_LABEL:
+ case RAIDFRAME_SET_LAST_UNIT:
case RAIDFRAME_SET_ROOT:
+ case RAIDFRAME_SHUTDOWN:
return (rs->sc_flags & RAIDF_INITED) == 0;
}
return false;
Home |
Main Index |
Thread Index |
Old Index