All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix sh_keysc double free
@ 2008-03-21 11:14 ` Magnus Damm
  0 siblings, 0 replies; 4+ messages in thread
From: Magnus Damm @ 2008-03-21 11:14 UTC (permalink / raw)
  To: linux-input; +Cc: Magnus Damm, lethal, dmitry.torokhov, akpm, linux-sh

Avoid double free situation from happening by removing input_free_device() 
after input_unregister_device(). Suggested by Dmitry Torokhov.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 drivers/input/keyboard/sh_keysc.c |    1 -
 1 file changed, 1 deletion(-)

--- 0001/drivers/input/keyboard/sh_keysc.c
+++ work/drivers/input/keyboard/sh_keysc.c	2008-03-21 10:58:20.000000000 +0900
@@ -238,7 +238,6 @@ static int __devexit sh_keysc_remove(str
 
 	input_unregister_device(priv->input);
 	free_irq(platform_get_irq(pdev, 0), pdev);
-	input_free_device(priv->input);
 	iounmap(priv->iomem_base);
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-24  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 11:14 [PATCH] Fix sh_keysc double free Magnus Damm
2008-03-21 11:14 ` Magnus Damm
2008-03-24  6:13 ` Paul Mundt
2008-03-24  6:13   ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.