From: Andrew Morton Date: Wed, 4 Feb 2009 23:12:07 +0000 (-0800) Subject: hp-wmi: fix error path in hp_wmi_bios_setup() X-Git-Tag: v2.6.29-rc4~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f0606d52d98ff05b3b62bb694821857e36819d;p=pandora-kernel.git hp-wmi: fix error path in hp_wmi_bios_setup() The error-path code can call rfkill_unregister() with a pointer which does not contain the result of a call to rfkill_register(). It goes BUG(). Addresses http://bugzilla.kernel.org/show_bug.cgi?id=12560. Cc: Frans Pop Cc: Larry Finger Cc: Len Brown Acked-by: Matthew Garrett Reported-by: Helge Deller Testted-by: Helge Deller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed