Input: sparse-keymap - free the right keymap on error
authorYong Wang <yong.y.wang@linux.intel.com>
Sat, 20 Mar 2010 06:02:16 +0000 (23:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 20 Mar 2010 06:03:09 +0000 (23:03 -0700)
commit88fcf710c13bd41f2b98c5411e4f21ab98da4fb4
tree70302e38f10076fb6844090366cfe270b622a9e0
parent31968ecf584330b51a25b7bf881c2b632a02a3fb
Input: sparse-keymap - free the right keymap on error

'map' is allocated in sparse_keymap_setup() and it it the one that should
be freed on error instead of 'keymap'.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/sparse-keymap.c