cxgbe(4): Use correct argument in call to hashdestroy.
This fixes a panic on driver module unload.
Fixes: 24b98f288d
cxgbe(4): Overhaul CLIP (Compressed Local IPv6) table management.
MFC after: 2 weeks
Sponsored by: Chelsio Communications
This commit is contained in:
parent
8d5c781306
commit
740d722def
@ -712,7 +712,7 @@ t4_destroy_clip_table(struct adapter *sc)
|
||||
free(ce, M_CXGBE);
|
||||
}
|
||||
}
|
||||
hashdestroy(&sc->clip_table, M_CXGBE, sc->clip_mask);
|
||||
hashdestroy(sc->clip_table, M_CXGBE, sc->clip_mask);
|
||||
sc->clip_table = NULL;
|
||||
done:
|
||||
mtx_unlock(&clip_db_lock);
|
||||
@ -856,7 +856,7 @@ t4_clip_modunload(void)
|
||||
{
|
||||
EVENTHANDLER_DEREGISTER(ifaddr_event_ext, ifaddr_evhandler);
|
||||
taskqueue_drain(taskqueue_thread, &clip_db_task);
|
||||
hashdestroy(&clip_db, M_CXGBE, clip_db_mask);
|
||||
hashdestroy(clip_db, M_CXGBE, clip_db_mask);
|
||||
mtx_destroy(&clip_db_lock);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user