aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2022-01-05 18:29:14 +0100
committerJiri Kosina <jkosina@suse.cz>2022-01-06 15:39:43 +0100
commitff6b548afe4d9d1ff3a0f6ef79e8cbca25d8f905 (patch)
treec90cdfac0f6fcf64ec7d47eb9b71fd5033200df9 /include/linux/fpga/fpga-mgr.h
parent0a94131d6920916ccb6a357037c535533af08819 (diff)
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 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions