Re: [PATCH] usb: gadget: f_hid: do not copy_from_user() under a spinlock

From: Linkai Gong

Date: Mon Aug 17 2026 - 21:17:19 EST


On Mon, 17 Aug 2026 15:46:04 +0100, David Laight wrote:
> How about a patch to remove the ERROR() from the earlier copy_from_user()
> error path?

Agreed. A failed copy_from_user() is a userspace error and should not
spam the kernel log. I'll send a follow-up that drops that ERROR().

Thanks,
Linkai