[media] ttusb2: Don't use stack variables for DMA
authorJosh Boyer <jwboyer@redhat.com>
Wed, 2 Nov 2011 19:39:58 +0000 (16:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Nov 2011 15:48:18 +0000 (13:48 -0200)
commitff17999184ed13829bc14c3be412d980173dff40
tree1a9b48ead56fb056eb98d89f82351355dadb5330
parent2b3c13ecce3bc0fbdeb5ef0596b350dc702d01d5
[media] ttusb2: Don't use stack variables for DMA

The ttusb2_msg function uses on-stack variables to submit commands to
dvb_usb_generic.  This eventually gets to the DMA api layer and will throw a
traceback if the debugging options are set.

This allocates the temporary buffer variables with kzalloc instead.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=734506

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/ttusb2.c