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;
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to