]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: st-keyscan - fix potential zalloc NULL dereference
authorGabriel Fernandez <gabriel.fernandez@st.com>
Sun, 17 Feb 2019 05:10:16 +0000 (21:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 07:19:00 +0000 (08:19 +0100)
commit5c00ee71ac0b89253042455dc4a73ba4d71127eb
treec21cf747b1a8d5750a6c100f17507352a34572d9
parent8086ef79de57b3b03262694bdf1c425a559a3fd2
Input: st-keyscan - fix potential zalloc NULL dereference

[ Upstream commit 2439d37e1bf8a34d437573c086572abe0f3f1b15 ]

This patch fixes the following static checker warning:

drivers/input/keyboard/st-keyscan.c:156 keyscan_probe()
error: potential zalloc NULL dereference: 'keypad_data->input_dev'

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/keyboard/st-keyscan.c