]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: playstation: Add missing check for input_ff_create_memless
authorHaotian Zhang <vulab@iscas.ac.cn>
Mon, 17 Nov 2025 08:28:08 +0000 (16:28 +0800)
committerJiri Kosina <jkosina@suse.com>
Sat, 10 Jan 2026 09:00:23 +0000 (10:00 +0100)
commite6807641ac94e832988655a1c0e60ccc806b76dc
tree2f55694f9cad6c84c4ebefc2bf3b99320eaa52b7
parent7273acfd0aef106093a8ffa3b4973eb70e5a3799
HID: playstation: Add missing check for input_ff_create_memless

The ps_gamepad_create() function calls input_ff_create_memless()
without verifying its return value,  which can lead to incorrect
behavior or potential crashes when FF effects are triggered.

Add a check for the return value of input_ff_create_memless().

Fixes: 51151098d7ab ("HID: playstation: add DualSense classic rumble support.")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-playstation.c