]> git.karo-electronics.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:38:42 +0000 (05:38 +0900)
commit6720119023f635bd8c285530a7092716c23bdfcc
treef973bf5a5dcc2f7d131f8ca322eb6ad473811701
parentec7fd138e2e690efff5eaec279ebc2c4740589e4
netxen: check for root bus in netxen_mask_aer_correctable

[ Upstream commit e4d1aa40e363ed3e0486aeeeb0d173f7f822737e ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c