Date: Thu, 27 May 2021 05:44:13 GMT From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 740d722def71 - main - cxgbe(4): Use correct argument in call to hashdestroy. Message-ID: <202105270544.14R5iD8k085064@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=740d722def71905dd74a622acce1561701ccbec6 commit 740d722def71905dd74a622acce1561701ccbec6 Author: Navdeep Parhar <np@FreeBSD.org> AuthorDate: 2021-05-27 04:32:13 +0000 Commit: Navdeep Parhar <np@FreeBSD.org> CommitDate: 2021-05-27 05:31:06 +0000 cxgbe(4): Use correct argument in call to hashdestroy. This fixes a panic on driver module unload. Fixes: 24b98f288d11 cxgbe(4): Overhaul CLIP (Compressed Local IPv6) table management. MFC after: 2 weeks Sponsored by: Chelsio Communications --- sys/dev/cxgbe/t4_clip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/cxgbe/t4_clip.c b/sys/dev/cxgbe/t4_clip.c index 18d78a9e830b..98734d6d11ce 100644 --- a/sys/dev/cxgbe/t4_clip.c +++ b/sys/dev/cxgbe/t4_clip.c @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105270544.14R5iD8k085064>