staging: brcm80211: Fix some initialisation failure paths
authorBen Hutchings <ben@decadent.org.uk>
Fri, 10 Sep 2010 00:38:18 +0000 (01:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Sep 2010 15:15:51 +0000 (08:15 -0700)
commiteb4764c3007ca306663ba1367a2b3475bfcdf09e
treef4e43367c2ecb765f355ad43dcdbdf3193c8a2f1
parent6b5e0736634d7b3d5f88d801e5a5e456190c42db
staging: brcm80211: Fix some initialisation failure paths

Initialise wl_info::tasklet early so that it's safe to tasklet_kill()
it in wl_free().

Remove assertions from wl_free() that may not be true in case of
initialisation failure.

Call wl_release_fw() in case of failure after wl_request_fw().
Don't rely on wl_firmware::fw_cnt in wl_release_fw().

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/TODO
drivers/staging/brcm80211/sys/wl_mac80211.c