qlxgbe: avoid NULL deref in error case

Reported by:	Dr Silvio Cesare of InfoSect
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2019-08-30 00:38:16 +00:00
parent ec8416f76d
commit 7e0025dea2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351620

View File

@ -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;
}