Only SLIST_REMOVE() a link when the link is on the list.
authorkrw <krw@openbsd.org>
Mon, 28 Mar 2022 15:47:11 +0000 (15:47 +0000)
committerkrw <krw@openbsd.org>
Mon, 28 Mar 2022 15:47:11 +0000 (15:47 +0000)
commit6b0fbbfd38cde06649fbb87435b1ffea39c2dac3
treee19631e12493a13b19f5dff1ada520c9a4706873
parent570c95799d61d6022f40a4d6064cd52bd13b300e
Only SLIST_REMOVE() a link when the link is on the list.

Avoids a potential panic.
sys/scsi/scsiconf.c