linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit
@ 2010-11-22  5:36 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-11-22  5:36 UTC (permalink / raw)
  To: linux-kernel
  Cc: Janusz Krzysztofik, Tony Lindgren, Dmitry Torokhov, linux-input

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: Axel Lin <axel.lin@gmail.com>
---
 drivers/input/serio/ams_delta_serio.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/input/serio/ams_delta_serio.c b/drivers/input/serio/ams_delta_serio.c
index 8f1770e..ebe9553 100644
--- a/drivers/input/serio/ams_delta_serio.c
+++ b/drivers/input/serio/ams_delta_serio.c
@@ -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);
-- 
1.7.2




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-22  5:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22  5:36 [PATCH] Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).