Skip to contentSkip to conversation

Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit

PATCH New Axel Lin 1 participant 1 message Nov 22, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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).

---
 drivers/input/serio/ams_delta_serio.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/input/serio/ams_delta_serio.c +0 -1
index 8f1770e..ebe9553 100644
@@ -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);
Signature · 1 line
1.7.2