V4L/DVB: media/az6027: doing dma on the stack
authorDan Carpenter <error27@gmail.com>
Tue, 4 May 2010 12:14:29 +0000 (09:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:59:05 +0000 (12:59 -0300)
commit32ec4576c3fb37316b1d11a04b220527822f3f0d
treeb6e8d8e6574cca08c6f19e29bcaca6b8af1aa830
parent9723dbb034e45775037c5dd098652e1628a1c9ef
V4L/DVB: media/az6027: doing dma on the stack

I changed the dma buffers to use allocated memory instead of stack
memory.

The reason for this is documented in Documentation/DMA-API-HOWTO.txt
under the section:  "What memory is DMA'able?"  That document was only
added a couple weeks ago and there are still lots of modules which
haven't been corrected yet.  Btw. Smatch includes a pretty good test to
find places which use stack memory as a dma buffer.  That's how I found
these.  (http://smatch.sf.net).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/az6027.c