]> git.baikalelectronics.ru Git - kernel.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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Feb 2019 05:44:02 +0000 (21:44 -0800)
commit2cfc3b1f2d469a4327e2df7f55f2cf2e7b18a660
tree41046ff365a6ead767c95ba30f68588443e4b89e
parent84a9c04016f84272aefdd432d5f3587df5365ace
Input: st-keyscan - fix potential zalloc NULL dereference

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>
drivers/input/keyboard/st-keyscan.c