]> Git Repo - linux.git/blobdiff - drivers/usb/core/urb.c
kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT
[linux.git] / drivers / usb / core / urb.c
index 419e6b34e2fe71c9f79ed79a8e76ef64ffb5c882..c14fc082864f1c26ac71fb94538d7eeca9459f75 100644 (file)
@@ -401,8 +401,11 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
        };
 
        /* Check that the pipe's type matches the endpoint's type */
-       if (usb_pipetype(urb->pipe) != pipetypes[xfertype])
+       if (usb_pipetype(urb->pipe) != pipetypes[xfertype]) {
+               dev_err(&dev->dev, "BOGUS urb xfer, pipe %x != type %x\n",
+                       usb_pipetype(urb->pipe), pipetypes[xfertype]);
                return -EPIPE;          /* The most suitable error code :-) */
+       }
 
        /* enforce simple/standard policy */
        allowed = (URB_NO_TRANSFER_DMA_MAP | URB_NO_INTERRUPT | URB_DIR_MASK |
This page took 0.032515 seconds and 4 git commands to generate.