HID: multitouch: Add NULL check in mt_input_configured
[ Upstream commit 9b8e2220d3a052a690b1d1b23019673e612494c5 ]
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: 479439463529 ("HID: multitouch: Correct devm device reference for hidinput input_dev name")
Signed-off-by:
Charles Han <hanchunchao@inspur.com>
Signed-off-by:
Jiri Kosina <jkosina@suse.com>
Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment