mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
usb: core: usb_submit_urb: downgrade type check
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>
This commit is contained in:
parent
7bf742b071
commit
503bbde34c
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
|
||||||
|
|
||||||
/* Check that the pipe's type matches the endpoint's type */
|
/* Check that the pipe's type matches the endpoint's type */
|
||||||
if (usb_pipe_type_check(urb->dev, urb->pipe))
|
if (usb_pipe_type_check(urb->dev, urb->pipe))
|
||||||
dev_WARN(&dev->dev, "BOGUS urb xfer, pipe %x != type %x\n",
|
dev_warn_once(&dev->dev, "BOGUS urb xfer, pipe %x != type %x\n",
|
||||||
usb_pipetype(urb->pipe), pipetypes[xfertype]);
|
usb_pipetype(urb->pipe), pipetypes[xfertype]);
|
||||||
|
|
||||||
/* Check against a simple/standard policy */
|
/* Check against a simple/standard policy */
|
||||||
|
|
Loading…
Add table
Reference in a new issue