]> git.karo-electronics.de Git - linux-beck.git/commit
[media] lmedm04: get rid of on-stack dma buffers
authorFlorian Mickler <florian@mickler.org>
Sun, 20 Mar 2011 21:50:52 +0000 (18:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:19 +0000 (09:28 -0300)
commit945b876600054081911d31bdb4f47b172c8a48ae
treec846af5263d26033818c0ff49435d7e44f88b23f
parent2a596f84e2e368a3167947b32c8ea51125f87c58
[media] lmedm04: 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

Tested-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Florian Mickler <florian@mickler.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/lmedm04.c