Commit 67f3a0d0 authored by Alexander Theissen's avatar Alexander Theissen Committed by Greg Kroah-Hartman

usb: appledisplay: Set urb transfer_flags to URB_NO_TRANSFER_DMA_MAP

The driver does allocate a DMA address with usb_alloc_coherent but did
not set the appropriate flag to signal that transfer_dma is set to a
valid value.
Signed-off-by: default avatarAlexander Theissen <alex.theissen@me.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 440da5a3
...@@ -260,6 +260,7 @@ static int appledisplay_probe(struct usb_interface *iface, ...@@ -260,6 +260,7 @@ static int appledisplay_probe(struct usb_interface *iface,
usb_rcvintpipe(udev, int_in_endpointAddr), usb_rcvintpipe(udev, int_in_endpointAddr),
pdata->urbdata, ACD_URB_BUFFER_LEN, appledisplay_complete, pdata->urbdata, ACD_URB_BUFFER_LEN, appledisplay_complete,
pdata, 1); pdata, 1);
pdata->urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP;
if (usb_submit_urb(pdata->urb, GFP_KERNEL)) { if (usb_submit_urb(pdata->urb, GFP_KERNEL)) {
retval = -EIO; retval = -EIO;
dev_err(&iface->dev, "Submitting URB failed\n"); dev_err(&iface->dev, "Submitting URB failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment