]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: yurex: Fix missing URB_NO_TRANSFER_DMA_MAP flag in urb
authorTomoki Sekiyama <tomoki.sekiyama@gmail.com>
Thu, 29 Mar 2012 23:51:36 +0000 (08:51 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:13:54 +0000 (13:13 +0100)
commit 532f17b5d59bf0deb6f1ff9bc1fb27d5b5011c09 upstream.

Current probing code is setting URB_NO_TRANSFER_DMA_MAP flag into a wrong urb
structure, and this causes BUG_ON with some USB host implementations.
This patch fixes the issue.

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/misc/yurex.c

index 24bff37a4c1b2843c03f614e92a3c387d3c0a627..2504694455f3a27544a969d4dd85fe11a067e03e 100644 (file)
@@ -282,7 +282,7 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_
                         usb_rcvintpipe(dev->udev, dev->int_in_endpointAddr),
                         dev->int_buffer, YUREX_BUF_SIZE, yurex_interrupt,
                         dev, 1);
-       dev->cntl_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
+       dev->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
        if (usb_submit_urb(dev->urb, GFP_KERNEL)) {
                retval = -EIO;
                err("Could not submitting URB");