]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tegra-kbc - correct call to input_free_device
authorAxel Lin <axel.lin@gmail.com>
Thu, 11 Aug 2011 16:22:45 +0000 (09:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Aug 2011 16:23:06 +0000 (09:23 -0700)
commitc828c62a7b38cacf592e862dc4acf3182b8cca0a
tree79321bf89d9b4011949ea1b0a88921c3a942d4c0
parent00270cf9c0ee8230b4aa70cd8ebe2ee8661f19d5
Input: tegra-kbc - correct call to input_free_device

If kzalloc for kbc fails, then we have NULL pointer dereference while
calling input_free_device(kbc->idev) in the error handling.
So it is safer to always use the original name, input_dev.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/tegra-kbc.c