提交 6dea7814 编写于 作者: M Magnus Damm 提交者: Paul Mundt

Fix sh_keysc double free

Avoid double free situation from happening by removing input_free_device()
after input_unregister_device(). Suggested by Dmitry Torokhov.
Signed-off-by: NMagnus Damm <damm@igel.co.jp>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 9460c0ce
......@@ -238,7 +238,6 @@ static int __devexit sh_keysc_remove(struct platform_device *pdev)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册