Linux/linux 2439d37drivers/input/keyboard st-keyscan.c

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 at oracle.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez at st.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov at gmail.com>
DeltaFile
+2-2drivers/input/keyboard/st-keyscan.c
+2-21 files

UnifiedSplitRaw