diff options
author | Tomoki Sekiyama <tomoki.sekiyama@gmail.com> | 2012-03-30 08:51:36 +0900 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-11 13:13:54 +0100 |
commit | 8047d2777a1a75d796b20876897c166de9664937 (patch) | |
tree | 122477421af7b08f5b8165c3b4840032838402f8 | |
parent | e0d502ac7fd46a9b1125404be1b6eeb383cdd833 (diff) | |
download | linux-stable-8047d2777a1a75d796b20876897c166de9664937.tar.gz linux-stable-8047d2777a1a75d796b20876897c166de9664937.tar.bz2 linux-stable-8047d2777a1a75d796b20876897c166de9664937.zip |
USB: yurex: Fix missing URB_NO_TRANSFER_DMA_MAP flag in urb
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>
-rw-r--r-- | drivers/usb/misc/yurex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c index 24bff37a4c1b..2504694455f3 100644 --- a/drivers/usb/misc/yurex.c +++ b/drivers/usb/misc/yurex.c @@ -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"); |