mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04: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
This commit is contained in:
parent
22dc8609c5
commit
56279238b0
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