]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Fix kernel oops on ARM SOC
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 29 Jul 2011 15:53:12 +0000 (10:53 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Aug 2011 17:46:47 +0000 (13:46 -0400)
commitf7b4431833393f69de8690d54d1d0562ea879f7a
tree85e8c9a6e4d12f35d926f01cd4dd25f74e9112af
parenta977e669234bb9d2978f5bdfc3ea0dba87c0f61e
rtlwifi: Fix kernel oops on ARM SOC

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>
Cc: Stable <stable@kernel.org> [back to 2.6.38]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c