Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd32005e authored by Corentin Chary's avatar Corentin Chary Committed by Len Brown
Browse files

eeepc-laptop: unregister_rfkill_notifier on failure



If there is a failure during eeepc_hotk_add() we need
to remove the acpi_notify_handler.

Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 309f5fbd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -748,6 +748,8 @@ static int eeepc_hotk_add(struct acpi_device *device)
 wlan_fail:
	if (ehotk->eeepc_wlan_rfkill)
		rfkill_free(ehotk->eeepc_wlan_rfkill);
	eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P6");
	eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P7");
 ehotk_fail:
	kfree(ehotk);
	ehotk = NULL;