Gitweb: http://git.kernel.org/linus/88fcf710c13bd41f2b98c5411e4f21ab98da4fb4 Commit: 88fcf710c13bd41f2b98c5411e4f21ab98da4fb4 Parent: 31968ecf584330b51a25b7bf881c2b632a02a3fb Author: Yong Wang <yong.y.wang@linux.intel.com> AuthorDate: Fri Mar 19 23:02:16 2010 -0700 Committer: Dmitry Torokhov <dmitry.torokhov@gmail.com> CommitDate: Fri Mar 19 23:03:09 2010 -0700 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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/input/sparse-keymap.c b/drivers/input/sparse-keymap.c index e6bde55..f64e004 100644 --- a/drivers/input/sparse-keymap.c +++ b/drivers/input/sparse-keymap.c @@ -163,7 +163,7 @@ int sparse_keymap_setup(struct input_dev *dev, return 0; err_out: - kfree(keymap); + kfree(map); return error; } -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
