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/aee142e93b08
branches:  trunk
changeset: 368202:aee142e93b08
user:      oster <oster%NetBSD.org@localhost>
date:      Tue Jun 28 03:13:27 2022 +0000

description:
RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.

Reported-by: syzbot+048387fcc9a1a3682638%syzkaller.appspotmail.com@localhost
Reported-by: syzbot+037d1813186571cb2d38%syzkaller.appspotmail.com@localhost

diffstat:

 sys/dev/raidframe/rf_compat80.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r a59ee9367f48 -r aee142e93b08 sys/dev/raidframe/rf_compat80.c
--- a/sys/dev/raidframe/rf_compat80.c   Tue Jun 28 02:04:51 2022 +0000
+++ b/sys/dev/raidframe/rf_compat80.c   Tue Jun 28 03:13:27 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_compat80.c,v 1.16 2021/12/11 19:24:21 mrg Exp $     */
+/*     $NetBSD: rf_compat80.c,v 1.17 2022/06/28 03:13:27 oster Exp $   */
 
 /*
  * Copyright (c) 2017 Matthew R. Green
@@ -315,11 +315,11 @@
        case RAIDFRAME_CHECK_COPYBACK_STATUS_EXT80:
        case RAIDFRAME_GET_INFO80:
        case RAIDFRAME_GET_COMPONENT_LABEL80:
+       case RAIDFRAME_FAIL_DISK80:
                if (!rf_inited(rs))
                        return ENXIO;
                break;
        case RAIDFRAME_CONFIGURE80:
-       case RAIDFRAME_FAIL_DISK80:
                break;
        default:
                return EPASSTHROUGH;



Home | Main Index | Thread Index | Old Index