diff options
| author | Denis Benato <denis.benato@linux.dev> | 2026-02-28 20:10:09 +0100 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-03-10 18:01:19 +0100 |
| commit | 7253091766ded0fd81fe8d8be9b8b835495b06e8 (patch) | |
| tree | 8a6972b27d6b322a7d8253185c83a4babe9cc245 /scripts/patch-kernel | |
| parent | 43b3d1a95a587d32f3d441033d0aa108515a8c27 (diff) | |
HID: asus: do not abort probe when not necessary
In order to avoid dereferencing a NULL pointer asus_probe is aborted early
and control of some asus devices is transferred over hid-generic after
erroring out even when such NULL dereference cannot happen: only early
abort when the NULL dereference can happen.
Also make the code shorter and more adherent to coding standards
removing square brackets enclosing single-line if-else statements.
Fixes: d3af6ca9a8c3 ("HID: asus: fix UAF via HID_CLAIMED_INPUT validation")
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
