Always check if softraid0 is NULL before dereferencing it.
authorkrw <krw@openbsd.org>
Sun, 20 Mar 2022 13:14:02 +0000 (13:14 +0000)
committerkrw <krw@openbsd.org>
Sun, 20 Mar 2022 13:14:02 +0000 (13:14 +0000)
commit0d960dd8f2b5ae5cdec6d76e508c4ca1b623da6d
treedd3565f71b8c3d16cf4e040120b742d5180bca9d
parent7307575a63bf568353aa79af59698a85b8e02d6b
Always check if softraid0 is NULL before dereferencing it.

Avoids panic on reboot when softraid has been disabled.

Discovered by, diagnosed, first diff from & fix tested by Scott
Nicholas.

ok bluhm@
sys/dev/softraid.c