]> git.baikalelectronics.ru Git - kernel.git/commit
[media] m920x: get rid of on-stack dma buffers
authorFlorian Mickler <florian@mickler.org>
Mon, 21 Mar 2011 18:33:45 +0000 (15:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:27:59 +0000 (09:27 -0300)
commite42640919d8f2db180b24f17a017b49d05c146aa
tree4f61ff4ea83e2326064fb19e845b6e80ea53ce74
parentc7deff45ac179ce35cd91008376700a9f08466e9
[media] m920x: get rid of on-stack dma buffers

usb_control_msg initiates (and waits for completion of) a dma transfer using
the supplied buffer. That buffer thus has to be seperately allocated on
the heap.

In lib/dma_debug.c the function check_for_stack even warns about it:
WARNING: at lib/dma-debug.c:866 check_for_stack

Note: This change is tested to compile only, as I don't have the hardware.

Signed-off-by: Florian Mickler <florian@mickler.org>
Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/m920x.c