Commit dd9ee325 authored by Denis Arefev's avatar Denis Arefev Committed by sanglipeng
Browse files

HID: wacom: Add error check to wacom_parse_and_register()

stable inclusion
from stable-v5.10.186
commit 49a2b18f49724b5504771a8d10f9ab57807afba4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8J4KH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49a2b18f49724b5504771a8d10f9ab57807afba4



--------------------------------

[ Upstream commit 16a9c24f ]

   Added a variable check and
   transition in case of an error

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: default avatarDenis Arefev <arefev@swemel.ru>
Reviewed-by: default avatarPing Cheng <ping.cheng@wacom.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 972e0093
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment