]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: uclogic: Fix regression of input name assignment
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Apr 2026 08:33:16 +0000 (10:33 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 28 Apr 2026 16:37:01 +0000 (18:37 +0200)
commit487359284509a6745e14b8c0518768bc277809b0
tree9553979de57069649daa3af0ba078e28dceee06a
parentae4ac077332ea3341a0f4c0973556c6b7ac5b7a1
HID: uclogic: Fix regression of input name assignment

The previous fix for adding the devm_kasprintf() return check in the
commit bd07f751208b ("HID: uclogic: Add NULL check in
uclogic_input_configured()") changed the condition of hi->input->name
assignment, and it resulted in missing the proper input device name
when no custom suffix is defined.

Restore the conditional to the original content to address the
regression.

Fixes: bd07f751208b ("HID: uclogic: Add NULL check in uclogic_input_configured()")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-uclogic-core.c