HID: wacom: Add error check to wacom_parse_and_register()
authorDenis Arefev <arefev@swemel.ru>
Thu, 27 Apr 2023 11:47:45 +0000 (14:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 09:12:35 +0000 (11:12 +0200)
commit8428f4c00d8c36f279d176548b4db73a7021983a
tree31b894095ed9a8ab6007cdcf7a7aae8725ba3dc3
parentaaa50510adb7f7f40e02809148f1d407b72c74f0
HID: wacom: Add error check to wacom_parse_and_register()

[ Upstream commit 16a9c24f24fbe4564284eb575b18cc20586b9270 ]

   Added a variable check and
   transition in case of an error

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

Signed-off-by: Denis Arefev <arefev@swemel.ru>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/wacom_sys.c