ttusb2: Don't use stack variables for DMA
authorJosh Boyer <jwboyer@redhat.com>
Wed, 2 Nov 2011 19:39:58 +0000 (16:39 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 26 Aug 2017 01:14:01 +0000 (02:14 +0100)
commit489c80155c8691d282ce18f62a3a83b0adf9ee0e
treedf56f873a4dfae33d1517eb3531950da7cdc4e55
parente8fba6090bb5bc277c017f8ca0f39cf303616682
ttusb2: Don't use stack variables for DMA

commit ff17999184ed13829bc14c3be412d980173dff40 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/dvb/dvb-usb/ttusb2.c