diff options
author | José Expósito <jose.exposito89@gmail.com> | 2022-01-05 20:29:14 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-01-06 17:39:43 +0300 |
commit | ff6b548afe4d9d1ff3a0f6ef79e8cbca25d8f905 (patch) | |
tree | c90cdfac0f6fcf64ec7d47eb9b71fd5033200df9 /scripts/gdb/linux/utils.py | |
parent | 0a94131d6920916ccb6a357037c535533af08819 (diff) | |
download | linux-ff6b548afe4d9d1ff3a0f6ef79e8cbca25d8f905.tar.xz |
HID: hid-uclogic-params: Invalid parameter check in uclogic_params_huion_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: 1443804 ("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