Author: emaste
Date: Mon Sep  2 00:31:05 2019
New Revision: 351677
URL: https://svnweb.freebsd.org/changeset/base/351677

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

Modified:
  stable/11/sys/dev/qlxgbe/ql_isr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/qlxgbe/ql_isr.c
==============================================================================
--- stable/11/sys/dev/qlxgbe/ql_isr.c   Mon Sep  2 00:31:03 2019        
(r351676)
+++ stable/11/sys/dev/qlxgbe/ql_isr.c   Mon Sep  2 00:31:05 2019        
(r351677)
@@ -791,7 +791,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;
        }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to