All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Reitmayr <treitmayr@devbase.at>
To: linux-dvb@linuxtv.org
Subject: [linux-dvb] [PATCH] usb-urb.c: Fix initialization of URB list.
Date: Mon, 29 Dec 2008 13:56:49 +0100	[thread overview]
Message-ID: <1230555409.14295.11.camel@localhost> (raw)

The following patch was sent to this list back in May 2008
(http://linuxtv.org/pipermail/linux-dvb/2008-May/025952.html) and had a
followup of myself in October 2008.
As the kernel oops with USB DVB receivers happens again and again I want
to propose to finally apply this patch to the v4l-dvb repository.
Thanks,
-Thomas

Signed-off-by: Thomas Reitmayr <treitmayr@devbase.at>

--- linux-old/drivers/media/dvb/dvb-usb/usb-urb.c	2008-12-29 13:50:33.000000000 +0100
+++ linux/drivers/media/dvb/dvb-usb/usb-urb.c	2008-12-29 13:52:19.000000000 +0100
@@ -160,7 +160,8 @@ static int usb_bulk_urb_init(struct usb_
 				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;





_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

             reply	other threads:[~2008-12-29 12:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-29 12:56 Thomas Reitmayr [this message]
2008-12-29 13:59 ` [linux-dvb] [PATCH] usb-urb.c: Fix initialization of URB list Patrick Boettcher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1230555409.14295.11.camel@localhost \
    --to=treitmayr@devbase.at \
    --cc=linux-dvb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.