geom_uzip(4): set 'gp != NULL' assertion on top of the function
There was yet another access to this variable in g_trace() few lines upper. PR: 203499 Reported by: cem MFC after: 5 days MFC with: 343473
This commit is contained in:
parent
b84b36380e
commit
81df432ecf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343475
@ -886,10 +886,10 @@ g_uzip_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp)
|
||||
{
|
||||
struct g_provider *pp;
|
||||
|
||||
KASSERT(gp != NULL, ("NULL geom"));
|
||||
g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, gp->name);
|
||||
g_topology_assert();
|
||||
|
||||
KASSERT(gp != NULL, ("NULL geom"));
|
||||
if (gp->softc == NULL) {
|
||||
DPRINTF(GUZ_DBG_ERR, ("%s(%s): gp->softc == NULL\n", __func__,
|
||||
gp->name));
|
||||
|
Loading…
Reference in New Issue
Block a user