mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
9460c0ce9b
commit
6dea7814e1
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue