Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: hid-uclogic-params: Invalid parameter check in uclogic_params_fr…
…ame_init_v1_buttonpad [ Upstream commit aa320fd ] 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: 9614219 ("HID: uclogic: Extract tablet parameter discovery into a module") Addresses-Coverity-ID: 1443763 ("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>
- Loading branch information