Searched hist:"0 a94131d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/hid/ |
H A D | hid-uclogic-params.c | 0a94131d Wed Jan 05 11:29:13 CST 2022 José Expósito <jose.exposito89@gmail.com> HID: hid-uclogic-params: Invalid parameter check in uclogic_params_get_str_desc
The function performs a check on the hdev input parameters, however, it is used before the check.
Initialize the udev variable after the sanity check to avoid a possible NULL pointer dereference.
Fixes: 9614219e9310e ("HID: uclogic: Extract tablet parameter discovery into a module") Addresses-Coverity-ID: 1443827 ("Null pointer dereference") Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|