diff options
author | José Expósito <jose.exposito89@gmail.com> | 2022-01-05 18:29:12 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-01-06 15:39:43 +0100 |
commit | f364c571a5c77e96de2d32062ff019d6b8d2e2bc (patch) | |
tree | e04263dc8d8bf8a78cafe8018384ba7684467a7d /include/linux/fpga/fpga-mgr.h | |
parent | 13251ce1dd9bb525da2becb9b26fdfb94ca58659 (diff) |
HID: hid-uclogic-params: Invalid parameter check in uclogic_params_init
The function performs a check on its input parameters, however, the
hdev parameter is used before the check.
Initialize the stack variables after checking the input parameters to
avoid a possible NULL pointer dereference.
Fixes: 9614219e9310e ("HID: uclogic: Extract tablet parameter discovery into a module")
Addresses-Coverity-ID: 1443831 ("Null pointer dereference")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions