summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/appledisplay.c
diff options
context:
space:
mode:
authorAlexander Theissen <alex.theissen@me.com>2018-12-04 23:43:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-05 10:42:24 +0100
commit67f3a0d0ad7220b9c37b5e6722a821cd7f389b39 (patch)
treef47aa95bcfe3e8efb310b4c3cd7b10e99f608ba4 /drivers/usb/misc/appledisplay.c
parentstaging: typec: fusb302: Rename fcs,extcon-name to linux,extcon-name (diff)
downloadlinux-67f3a0d0ad7220b9c37b5e6722a821cd7f389b39.tar.xz
linux-67f3a0d0ad7220b9c37b5e6722a821cd7f389b39.zip
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: Alexander Theissen <alex.theissen@me.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/appledisplay.c')
-rw-r--r--drivers/usb/misc/appledisplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c
index 85b48c6ddc7e..730a266cd7b9 100644
--- a/drivers/usb/misc/appledisplay.c
+++ b/drivers/usb/misc/appledisplay.c
@@ -260,6 +260,7 @@ static int appledisplay_probe(struct usb_interface *iface,
usb_rcvintpipe(udev, int_in_endpointAddr),
pdata->urbdata, ACD_URB_BUFFER_LEN, appledisplay_complete,
pdata, 1);
+ pdata->urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP;
if (usb_submit_urb(pdata->urb, GFP_KERNEL)) {
retval = -EIO;
dev_err(&iface->dev, "Submitting URB failed\n");