]> git.baikalelectronics.ru Git - kernel.git/commit
[media] opera1: get rid of on-stack dma buffer
authorFlorian Mickler <florian@mickler.org>
Mon, 21 Mar 2011 18:33:46 +0000 (15:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:02 +0000 (09:28 -0300)
commit58de7f489443705c69c52992249d4fee161ca569
tree72639018f821d6adebc8359fab143005c6d7ec1a
parente42640919d8f2db180b24f17a017b49d05c146aa
[media] opera1: get rid of on-stack dma buffer

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/opera1.c