Skip to content

Commit

Permalink
RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.
Browse files Browse the repository at this point in the history
Reported-by: syzbot+048387fcc9a1a3682638@syzkaller.appspotmail.com
Reported-by: syzbot+037d1813186571cb2d38@syzkaller.appspotmail.com
  • Loading branch information
oster authored and oster committed Jun 28, 2022
1 parent eaf33ef commit cb9f287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/dev/raidframe/rf_compat80.c
@@ -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
Expand Down Expand Up @@ -315,11 +315,11 @@ raidframe_ioctl_80(struct raid_softc *rs, u_long cmd, void *data)
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;
Expand Down

0 comments on commit cb9f287

Please sign in to comment.