+10
−15
Loading
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: d3af6ca9 ("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>