summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYousef Alhouseen <alhouseenyousef@gmail.com>2026-06-30 23:18:45 +0200
committerJiri Kosina <jkosina@suse.com>2026-09-11 17:04:15 +0200
commit45c8ab60f8b8cbea46e8717ec548b41c0096c951 (patch)
treef1c03bbfe840020818560808c5bae0c7b7e8d3f2 /tools/perf/scripts/python
parent03f449b5de36a25fc5eba7dabf2b4494389bdb91 (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions