diff options
author | 2011-11-11 17:26:24 +0000 | |
---|---|---|
committer | 2011-11-11 17:26:24 +0000 | |
commit | 9311070f1566b45a30879e69894754701535e046 (patch) | |
tree | ea43a044b402371001d33954cfc8e53bf23f587b /sys/dev/softraid.c | |
parent | When rebuilding check the size of the replacement chunk against the (diff) | |
download | wireguard-openbsd-9311070f1566b45a30879e69894754701535e046.tar.xz wireguard-openbsd-9311070f1566b45a30879e69894754701535e046.zip |
Remove a bogus check which dereferences an uninitialised pointer.
From Pedro Martelletto.
ok krw@ mikeb@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 73421ceb131..f8942494d07 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.255 2011/11/11 17:23:39 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.256 2011/11/11 17:26:24 jsing Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -2757,9 +2757,6 @@ sr_hotspare_rebuild(struct sr_discipline *sd) busy = 0; s = splbio(); - if (wu->swu_cb_active == 1) - panic("%s: sr_hotspare_rebuild", - DEVNAME(sd->sd_sc)); TAILQ_FOREACH(wu, &sd->sd_wu_pendq, swu_link) { TAILQ_FOREACH(ccb, &wu->swu_ccb, ccb_link) { if (ccb->ccb_target == chunk_no) |