diff options
author | José Expósito <jose.exposito89@gmail.com> | 2022-01-05 20:29:12 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-01-06 17:39:43 +0300 |
commit | f364c571a5c77e96de2d32062ff019d6b8d2e2bc (patch) | |
tree | e04263dc8d8bf8a78cafe8018384ba7684467a7d /scripts/gdb/linux/utils.py | |
parent | 13251ce1dd9bb525da2becb9b26fdfb94ca58659 (diff) | |
download | linux-f364c571a5c77e96de2d32062ff019d6b8d2e2bc.tar.xz |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions