Re: [PATCH] HID: hiddev: set report-init policy before device registration
From: Jiri Kosina
Date: Fri Sep 11 2026 - 11:19:17 EST
On Tue, 30 Jun 2026, Yousef Alhouseen wrote:
> 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@xxxxxxxxx>
Same as before -- sorry for the delay, thanks for the fix, applied.
--
Jiri Kosina
SUSE Labs