]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:54 +0000 (07:47 -0700)
commitf0736a48d05685fae9afa5b13d9eab5b8dcd34f4
treef365f691b339675d617a4445dc79c7712d545e38
parente58bcaf0556d4507abab778f1a919e45d4d5639a
Input: sparse-keymap - free the right keymap on error

commit 88fcf710c13bd41f2b98c5411e4f21ab98da4fb4 upstream.

'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>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/sparse-keymap.c