Commit 9b8e2220 authored by Charles Han's avatar Charles Han Committed by Jiri Kosina
Browse files

HID: multitouch: Add NULL check in mt_input_configured



devm_kasprintf() can return a NULL pointer on failure,but this
returned value in mt_input_configured() is not checked.
Add NULL check in mt_input_configured(), to handle kernel NULL
pointer dereference error.

Fixes: 47943946 ("HID: multitouch: Correct devm device reference for hidinput input_dev name")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 45ab5166
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment