Files
linux/drivers
José Expósito fc8a47ed62 HID: hid-uclogic-params: Invalid parameter check in uclogic_params_huion_init
[ Upstream commit ff6b548afe ]

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: 9614219e93 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:55 +01:00
..
2021-09-08 11:50:26 -07:00
2021-12-22 09:32:41 +01:00
2022-01-27 11:03:39 +01:00
2022-01-27 11:03:18 +01:00
2022-01-27 11:03:43 +01:00
2021-11-18 19:16:08 +01:00
2021-12-22 09:32:39 +01:00