Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2020 19:23:53 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359982 - head/sys/dev/cxgbe/tom
Message-ID:  <202004151923.03FJNr0T057212@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004151923.03FJNr0T057212>