mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00: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
@ -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 New Issue
Block a user