Fix sh_keysc double free
authorMagnus Damm <magnus.damm@gmail.com>
Fri, 21 Mar 2008 11:14:46 +0000 (20:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 18 Apr 2008 16:50:02 +0000 (09:50 -0700)
commit6dea7814e1c6a27701a63b271fc580791e066537
tree8923a7ca7fa0d0a4a6775146368c3015a1deb705
parent9460c0ce9b29825d279081d5078815a32c268ada
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 <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/input/keyboard/sh_keysc.c