Input: mousedev - fix memory leak
authorKimball Murray <kimball.murray@stratus.com>
Mon, 30 Jan 2006 02:50:59 +0000 (21:50 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Mon, 30 Jan 2006 02:50:59 +0000 (21:50 -0500)
commit74570d413cbb5cede06a0183a91d3006f134bf6b
treeaef81bc8688bcc932019a7a380958de698c3d85b
parent5ae08f80ec5b2b08dd2f76a166140dd156fb31a1
Input: mousedev - fix memory leak

Apparently, "while true; do cat </dev/null >/dev/input/mice; done" causes
an OOM in a short amount of time. Funny that nobody noticed, it actually
is very easy to trigger just by switching between VT1 and VT7...

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mousedev.c