]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usbnet/cdc_ncm: Don't use stack variables for DMA
authorJosh Boyer <jwboyer@redhat.com>
Mon, 8 Aug 2011 02:34:07 +0000 (02:34 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:06 +0000 (11:18 -0800)
commit084c145def5a0b644e59035904fda7440cbd35fd
tree2b6059be7da34fb4fc6c4ae576353a6dab9aca0b
parent7593c4b4d908721f4157393f868ba815d9274ee6
usbnet/cdc_ncm: Don't use stack variables for DMA

commit 75bc8ef528f7c4ea7e80384c5593487b6b3b535e upstream.

The cdc_ncm driver still has a few places where stack variables are
passed to the cdc_ncm_do_request function.  This triggers a stack trace in
lib/dma-debug.c if the CONFIG_DEBUG_DMA_API option is set.

Adjust these calls to pass parameters that have been allocated with
kzalloc.

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/usb/cdc_ncm.c