In g_disk_providergone(), don't continue if the softc is NULL. This may be
the case if we've already gone through g_disk_destroy(). Reported by: Michael Butler <imb@protected-networks.net> MFC after: 3 days
This commit is contained in:
parent
94f926381b
commit
b81d46dab2
@ -502,6 +502,14 @@ g_disk_providergone(struct g_provider *pp)
|
||||
struct g_disk_softc *sc;
|
||||
|
||||
sc = (struct g_disk_softc *)pp->geom->softc;
|
||||
|
||||
/*
|
||||
* If the softc is already NULL, then we've probably been through
|
||||
* g_disk_destroy already; there is nothing for us to do anyway.
|
||||
*/
|
||||
if (sc == NULL)
|
||||
return;
|
||||
|
||||
dp = sc->dp;
|
||||
|
||||
if (dp->d_gone != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user