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

Commit ebcc0199 authored by Axel Lin's avatar Axel Lin Committed by Dmitry Torokhov
Browse files

Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit



serio_unregister_port() will call put_device() to free the memory.
Thus remove kfree(ams_delta_serio) after
serio_unregister_port(ams_delta_serio).

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0e86eb29
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -172,6 +172,5 @@ static void __exit ams_delta_serio_exit(void)
	free_irq(OMAP_GPIO_IRQ(AMS_DELTA_GPIO_PIN_KEYBRD_CLK), 0);
	gpio_free(AMS_DELTA_GPIO_PIN_KEYBRD_CLK);
	gpio_free(AMS_DELTA_GPIO_PIN_KEYBRD_DATA);
	kfree(ams_delta_serio);
}
module_exit(ams_delta_serio_exit);