svn commit: r359982 - head/sys/dev/cxgbe/tom

John Baldwin jhb at FreeBSD.org
Wed Apr 15 19:23:54 UTC 2020


Author: jhb
Date: Wed Apr 15 19:23:53 2020
New Revision: 359982
URL: https://svnweb.freebsd.org/changeset/base/359982

Log:
  Clear CPL_GET_TCB_RPL handler on module unload.
  
  This fixes a panic when unloading and reloading t4_tom.ko since the
  old pointer is still stored when t4_tom_load tries to set it.
  
  Reviewed by:	np
  Sponsored by:	Chelsio Communications
  Differential Revision:	https://reviews.freebsd.org/D24358

Modified:
  head/sys/dev/cxgbe/tom/t4_tom.c

Modified: head/sys/dev/cxgbe/tom/t4_tom.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_tom.c	Wed Apr 15 18:43:44 2020	(r359981)
+++ head/sys/dev/cxgbe/tom/t4_tom.c	Wed Apr 15 19:23:53 2020	(r359982)
@@ -1895,6 +1895,7 @@ t4_tom_mod_unload(void)
 	t4_uninit_listen_cpl_handlers();
 	t4_uninit_cpl_io_handlers();
 	t4_register_shared_cpl_handler(CPL_L2T_WRITE_RPL, NULL, CPL_COOKIE_TOM);
+	t4_register_cpl_handler(CPL_GET_TCB_RPL, NULL);
 
 	return (0);
 }


More information about the svn-src-head mailing list