Linux/linux 2439d37 — drivers/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>
Delta | File | |
---|---|---|
+2 | -2 | drivers/input/keyboard/st-keyscan.c |
+2 | -2 | 1 files |