usbnet/cdc_ncm: Don't use stack variables for DMA
commit91c193f925d75b03f5a7f31ae1358a87af33c78a
authorJosh Boyer <jwboyer@redhat.com>
Mon, 8 Aug 2011 02:34:07 +0000 (8 02:34 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:36:37 +0000 (11 09:36 -0800)
treeef7953288438a8521db6b342f1c0e3c62f313053
parent510c6bcea7b81acf7c86d2d72944ed516223fcbb
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