use LIST_FOREACH_SAFE() to avoid use after free
authorjsg <jsg@openbsd.org>
Sun, 24 Mar 2024 05:50:20 +0000 (05:50 +0000)
committerjsg <jsg@openbsd.org>
Sun, 24 Mar 2024 05:50:20 +0000 (05:50 +0000)
commit0c95ab44f81c01502df59d2b1d1be92760510dea
tree7afa6c5a90b94ba4da56e7259cb4dfcc2dc3de4c
parent78983cae82630396db4d434f7d5ee493045d25ca
use LIST_FOREACH_SAFE() to avoid use after free
this can't happen in a libsa environment

found by smatch, ok jsing@
sys/lib/libsa/softraid.c