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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Aug 2011 01:00:32 +0000 (18:00 -0700)
commit75bc8ef528f7c4ea7e80384c5593487b6b3b535e
tree7207080d5c50cc10d8104fe3cadf96b7cb21b938
parentf6957f88e59df5008f7b2169400be657f81cdb80
usbnet/cdc_ncm: Don't use stack variables for DMA

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>
drivers/net/usb/cdc_ncm.c