From: Thomas Reitmayr Date: Mon, 29 Dec 2008 13:59:29 +0000 (-0300) Subject: V4L/DVB (9981): [PATCH] usb-urb.c: Fix initialization of URB list. X-Git-Tag: MMI-PSA29.97-13-9~30449^2~126 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d29ca09d50309bb7df5d57aec88efdcd09a56f9f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git V4L/DVB (9981): [PATCH] usb-urb.c: Fix initialization of URB list. Fix the initialization of the URB list for a DVB-USB device to prevent problems on certain platforms (MIPS). Signed-off-by: Thomas Reitmayr Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-usb/usb-urb.c b/drivers/media/dvb/dvb-usb/usb-urb.c index da93b9e982c0..9da2cc95ca13 100644 --- a/drivers/media/dvb/dvb-usb/usb-urb.c +++ b/drivers/media/dvb/dvb-usb/usb-urb.c @@ -156,7 +156,8 @@ static int usb_bulk_urb_init(struct usb_data_stream *stream) stream->props.u.bulk.buffersize, usb_urb_complete, stream); - stream->urb_list[i]->transfer_flags = 0; + stream->urb_list[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP; + stream->urb_list[i]->transfer_dma = stream->dma_addr[i]; stream->urbs_initialized++; } return 0;