]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netxen: check for root bus in netxen_mask_aer_correctable
authorNikolay Aleksandrov <nikolay@redhat.com>
Fri, 14 Sep 2012 05:50:03 +0000 (05:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Sep 2012 20:22:08 +0000 (16:22 -0400)
commite4d1aa40e363ed3e0486aeeeb0d173f7f822737e
tree8b787165d2d0eb6514033afe925f308a98cea920
parente488921f44765e8ab6c48ca35e3f6b78df9819df
netxen: check for root bus in netxen_mask_aer_correctable

Add a check if pdev->bus->self == NULL (root bus). When attaching
a netxen NIC to a VM it can be on the root bus and the guest would
crash in netxen_mask_aer_correctable() because of a NULL pointer
dereference if CONFIG_PCIEAER is present.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c