mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
geom_linux_lvm: Avoid removing from vg_list before inserting
PR: 266693 Reported by: Robert Morris <rtm@lcs.mit.edu> MFC after: 1 week (cherry picked from commit 56279238b03a0ccef245b22fff7679fe35cffccc)
This commit is contained in:
parent
688c44068a
commit
0da34087c4
1 changed files with 2 additions and 2 deletions
|
|
@ -512,7 +512,6 @@ g_llvm_free_vg(struct g_llvm_vg *vg)
|
|||
LIST_REMOVE(lv, lv_next);
|
||||
free(lv, M_GLLVM);
|
||||
}
|
||||
LIST_REMOVE(vg, vg_next);
|
||||
free(vg, M_GLLVM);
|
||||
}
|
||||
|
||||
|
|
@ -596,7 +595,8 @@ g_llvm_destroy(struct g_llvm_vg *vg, int force)
|
|||
}
|
||||
}
|
||||
|
||||
g_llvm_free_vg(gp->softc);
|
||||
LIST_REMOVE(vg, vg_next);
|
||||
g_llvm_free_vg(vg);
|
||||
gp->softc = NULL;
|
||||
g_wither_geom(gp, ENXIO);
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue