mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
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>
This commit is contained in:
parent
e4f55966d0
commit
09729f0b11
@ -502,7 +502,7 @@ static int __exit hp_wmi_bios_remove(struct platform_device *device)
|
||||
}
|
||||
if (bluetooth_rfkill) {
|
||||
rfkill_unregister(bluetooth_rfkill);
|
||||
rfkill_destroy(wifi_rfkill);
|
||||
rfkill_destroy(bluetooth_rfkill);
|
||||
}
|
||||
if (wwan_rfkill) {
|
||||
rfkill_unregister(wwan_rfkill);
|
||||
|
Loading…
Reference in New Issue
Block a user