diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2026-06-23 14:52:00 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-03 19:26:36 +0200 |
| commit | dd5be4d9ce2dfc4d4a4527ef7d31d21a78e3cdac (patch) | |
| tree | 07a10ac7627350063a26710e607a60479b3a8aa8 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 2a767bd3e0b7277718a9a604cbe53e42830f025d (diff) | |
HID: logitech-hidpp: Fix FF device cleanup on init failure
hidpp_ff_init() creates the input force-feedback device with
input_ff_create(), then allocates the HID++ FF private data,
effect ID array, and workqueue.
If any of those allocations fail after input_ff_create() succeeds,
the function returns an error without destroying the FF device.
Add an unwind path that frees the private allocations made by
hidpp_ff_init() and calls input_ff_destroy() for failures after
input_ff_create() succeeds.
Fixes: ff21a635dd1a ("HID: logitech-hidpp: Force feedback support for the Logitech G920")
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
