]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
graid3: Fix teardown in g_raid3_try_destroy()
authorMark Johnston <markj@FreeBSD.org>
Sat, 20 Apr 2024 16:02:06 +0000 (12:02 -0400)
committerMark Johnston <markj@FreeBSD.org>
Sat, 20 Apr 2024 16:04:57 +0000 (12:04 -0400)
commit955f213fa2f14d5b5e9b655d8922e28315eb9fa3
tree9017cf045432edac0e79e5ac7797f1f1121b8ca3
parentc0f13232410cf881475d6e4dbd0ec28ab3476c59
graid3: Fix teardown in g_raid3_try_destroy()

Commit 33cb9b3c3a22 replaced a g_raid3_destroy_device() call with a
g_raid3_free_device() call, which was incorrect and could lead to a
panic if a RAID3 GEOM failed to start (e.g., due to missing disks).

Reported by: graid3 tests
Fixes: 33cb9b3c3a22 ("graid3: Fix teardown races")
MFC after: 3 days
Sponsored by: Klara, Inc.
sys/geom/raid3/g_raid3.c