b43: Fix unload oops if firmware is not available
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 12 Jan 2014 21:11:38 +0000 (15:11 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:05:47 +0000 (11:05 -0800)
commit5cdc61ecc7d1753890162f5f59a5ddebc81d6b97
treee198cf738f349ab75d7bc8612d51fe660e648163
parent4dbfb7dd725b29e1aa1bbe2db6aadaf6d825b9c4
b43: Fix unload oops if firmware is not available

commit 0673effd41dba323d6a280ef37b5ef29f3f5a653 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.

To be able to access the completion structure at teardown, it had to be moved
into the b43_wldev structure.

This patch also fixes a typo in a comment.

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/b43/b43.h
drivers/net/wireless/b43/main.c