Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2019 00:38:16 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351620 - head/sys/dev/qlxgbe
Message-ID:  <201908300038.x7U0cGEq077201@repo.freebsd.org>

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



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