diff options
| author | 2026-06-30 23:18:45 +0200 | |
|---|---|---|
| committer | 2026-09-11 17:04:15 +0200 | |
| commit | 45c8ab60f8b8cbea46e8717ec548b41c0096c951 (patch) | |
| tree | f1c03bbfe840020818560808c5bae0c7b7e8d3f2 /scripts/Makefile.thinlto | |
| parent | HID: hiddev: keep state alive through disconnect unlock (diff) | |
HID: hiddev: set report-init policy before device registration
usb_register_dev() publishes the hiddev character device before
hiddev_connect() initializes the report policy. A process that opens the
new node immediately can issue a usage ioctl while initialized is still
false and trigger usbhid_init_reports(), bypassing
HID_QUIRK_NO_INIT_REPORTS.
Set initialized before registering the character device so every opener
observes the quirk-selected policy.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
