]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: core: usb_submit_urb: downgrade type check
authorOliver Neukum <oneukum@suse.com>
Thu, 12 Jun 2025 12:20:25 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:54 +0000 (16:25 +0200)
commit4d2cc6967dd1852262b42a538577e6f8223ce27e
tree7f9e903bc424508fd3c4c1abf6fb1e0f3e873240
parent9f351284e6472da5a9f91e6e74dd3ce00e80c678
usb: core: usb_submit_urb: downgrade type check

[ Upstream commit 503bbde34cc3dd2acd231f277ba70c3f9ed22e59 ]

Checking for the endpoint type is no reason for a WARN, as that can
cause a reboot. A driver not checking the endpoint type must not cause a
reboot, as there is just no point in this.  We cannot prevent a device
from doing something incorrect as a reaction to a transfer. Hence
warning for a mere assumption being wrong is not sensible.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250612122149.2559724-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/core/urb.c