svn commit: r351620 - head/sys/dev/qlxgbe

Ed Maste emaste at FreeBSD.org
Fri Aug 30 00:38:17 UTC 2019


Author: emaste
Date: Fri Aug 30 00:38:16 2019
New Revision: 351620
URL: https://svnweb.freebsd.org/changeset/base/351620

Log:
  qlxgbe: avoid NULL deref in error case
  
  Reported by:	Dr Silvio Cesare of InfoSect
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/qlxgbe/ql_isr.c

Modified: head/sys/dev/qlxgbe/ql_isr.c
==============================================================================
--- head/sys/dev/qlxgbe/ql_isr.c	Fri Aug 30 00:36:17 2019	(r351619)
+++ head/sys/dev/qlxgbe/ql_isr.c	Fri Aug 30 00:38:16 2019	(r351620)
@@ -793,7 +793,7 @@ ql_mbx_isr(void *arg)
 	ha = arg;
 
 	if (ha == NULL) {
-		device_printf(ha->pci_dev, "%s: arg == NULL\n", __func__);
+		printf("%s: arg == NULL\n", __func__);
 		return;
 	}
 


More information about the svn-src-all mailing list