]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: fix for race condition when firmware is cached
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 4 May 2012 13:27:43 +0000 (08:27 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 May 2012 17:51:24 +0000 (13:51 -0400)
commit629f8a63639cecfda95aec2c186b63027a5ae153
tree51d3bd9e4ddb589ee4fafdde00b5d1a6c090b3dc
parent9eb75674cd258df5f91a3c7a58b5d7df63d64ecf
rtlwifi: fix for race condition when firmware is cached

In commit d8c6629, the rtlwifi family of drivers was converted to use
asynchronous firmware loading. Unfortumately, the implementation was
racy, and the ieee80211 routines could be started before rtl_init_core()
was called to setup the data.

This patch fixes the bug noted in https://bugzilla.kernel.org/show_bug.cgi?id=43187.

Reported-by: Joshua Roys <Joshua.Roys@gtri.gatech.edu>
Tested-by: Neptune Ning <frostyplanet@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [3.3]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c
drivers/net/wireless/rtlwifi/usb.c