From: Roland Vossen Date: Tue, 15 Feb 2011 10:13:51 +0000 (+0100) Subject: staging: brcm80211: bugfix for stack dump on firmware load problems X-Git-Tag: v2.6.39-rc1~469^2~523 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=490e00f68534cd724ba8e486ff6cd6b10d1891b1;p=pandora-kernel.git staging: brcm80211: bugfix for stack dump on firmware load problems If there is a problem with the firmware load (eg, firmware not present in /lib/firmware/brcm), then the driver would dump its stack instead of bailing out gracefully. Root cause was an uninitialized variable (wl->pub) being dereferenced in the rfkill portion of a cleanup routine (wl_remove). Fix was to move the rfkill calls into the correct spot in wl_remove(). Signed-off-by: Roland Vossen Reviewed-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed