]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Aug 2011 01:00:32 +0000 (18:00 -0700)
commita64853873ec34bbb801c442859d7459c3598a966
tree7207080d5c50cc10d8104fe3cadf96b7cb21b938
parent3a7e4fdff349d173e22757459c581f95abdeee09
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