rtlwifi: Fix kernel oops on ARM SOC
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 29 Jul 2011 15:53:12 +0000 (10:53 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:33 +0000 (18:31 -0700)
commitb7d9c861aec35bba7e809eef5b6a79fe3ff8b695
tree0ad83f0f340b408922e1f03e1aef0956ebd93758
parent07e1a60a732bbd4142d068302d09470d8441d1dc
rtlwifi: Fix kernel oops on ARM SOC

commit b6b67df3f24c45af0012ee3c8af2f62ca083ae18 upstream.

This driver uses information from the self member of the pci_bus struct to
get information regarding the bridge to which the PCIe device is attached.
Unfortunately, this member is not established on all architectures, which
leads to a kernel oops.

Skipping the entire block that uses the self member to determine the bridge
vendor will only affect RTL8192DE devices as that driver sets the ASPM support
flag differently when the bridge vendor is Intel. If the self member is
available, there is no functional change.

This patch fixes Bugzilla No. 40212.

Reported-by: Hubert Liao <liao.hubertt@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/rtlwifi/pci.c