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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:08:14 +0000 (11:08 -0800)
commita77ea51bef5bd8b9d13118e5804d9537d54432a0
tree6a3b7584730e3da6c11295a0459e1505be389c24
parent1a712907b90a5aad689e8757616537a506ba07f9
b43legacy: Fix unload oops if firmware is not available

commit 452028665312672c6ba9e16a19248ee00ead9400 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/b43legacy/main.c