From: Axel Lin Date: Thu, 11 Aug 2011 16:22:45 +0000 (-0700) Subject: Input: tegra-kbc - correct call to input_free_device X-Git-Tag: v3.1-rc4~48^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f83205e59c97c2460ad8e4bd6e71268cb2f37f;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed