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)
committerJiri Kosina <jkosina@suse.cz>
Tue, 23 May 2023 13:11:57 +0000 (15:11 +0200)
commit16a9c24f24fbe4564284eb575b18cc20586b9270
tree4a46da0661c49bde7a46d8f1247d2fbddbc39b90
parented84c4517a5bc536e8572a01dfa11bc22a280d06
HID: wacom: Add error check to wacom_parse_and_register()

   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>
drivers/hid/wacom_sys.c