From: Nikolay Aleksandrov Date: Fri, 14 Sep 2012 05:50:03 +0000 (+0000) Subject: netxen: check for root bus in netxen_mask_aer_correctable X-Git-Tag: v3.2.31~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da49262a5dcbd87b727051e66e729bf17acb9a62;p=pandora-kernel.git 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 Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed