mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
graid3: Fix teardown in g_raid3_try_destroy()
Commit33cb9b3c3areplaced 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:33cb9b3c3a("graid3: Fix teardown races") MFC after: 3 days Sponsored by: Klara, Inc.
This commit is contained in:
parent
c0f1323241
commit
955f213fa2
1 changed files with 1 additions and 1 deletions
|
|
@ -2033,7 +2033,7 @@ g_raid3_try_destroy(struct g_raid3_softc *sc)
|
|||
sc->sc_worker = NULL;
|
||||
} else {
|
||||
g_topology_unlock();
|
||||
g_raid3_free_device(sc);
|
||||
g_raid3_destroy_device(sc);
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue