b43legacy: Fix unload oops if firmware is not available
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 12 Jan 2014 21:11:39 +0000 (15:11 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Jan 2014 19:50:03 +0000 (14:50 -0500)
commit452028665312672c6ba9e16a19248ee00ead9400
tree46ad4a22e2345fe437cf0ba29c5e8701e89b5b62
parent0673effd41dba323d6a280ef37b5ef29f3f5a653
b43legacy: Fix unload oops if firmware is not available

The asyncronous firmware load uses a completion struct to hold firmware
processing until the user-space routines are up and running. There is.
however, a problem in that the waiter is nevered canceled during teardown.
As a result, unloading the driver when firmware is not available causes an oops.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/main.c