hp-wmi: fix rfkill memory leak on unload
authorCorentin Chary <corentincj@iksaif.net>
Mon, 14 Sep 2009 10:43:51 +0000 (12:43 +0200)
committerLen Brown <len.brown@intel.com>
Sat, 19 Sep 2009 05:33:27 +0000 (01:33 -0400)
commit09729f0b11a389e046f621f3e4841043f460b603
treed25f19c51b7cbc505d383c0a5cf198d4feb8bbbd
parente4f55966d02c5dfade2978c2aa05fb202a78a4d1
hp-wmi: fix rfkill memory leak on unload

rfkill_unregister() should always be followed by rfkill_destroy()
In this case, rfkill_destroy was called two times on wifi_rfkill and
never on bluetooth_rfkill.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/hp-wmi.c