Skip to content
Commit 44f0606d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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 <elendil@planet.nl>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Len Brown <lenb@kernel.org>
Acked-by: default avatarMatthew Garrett <mjg@redhat.com>
Reported-by: default avatarHelge Deller <deller@gmx.de>
Testted-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 60fd760f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment