usb: appledisplay: Set urb transfer_flags to URB_NO_TRANSFER_DMA_MAP
authorAlexander Theissen <alex.theissen@me.com>
Tue, 4 Dec 2018 22:43:36 +0000 (23:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 09:42:24 +0000 (10:42 +0100)
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>
drivers/usb/misc/appledisplay.c

index 85b48c6..730a266 100644 (file)
@@ -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");