Thread (4 messages) 4 messages, 2 authors, 2011-08-14

Re: [PATCH v4] usbnet/cdc_ncm: Don't use stack variables for DMA

flat view

From: Josh Boyer <hidden>
Date: 2011-08-12 15:07:27
Also in: lkml

On Mon, Aug 08, 2011 at 08:34:06AM -0400, Josh Boyer wrote:
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 <redacted>
---
v4: Rebase against 3.1-rc1
v3: Fix checkpatch errors
v2: Fix leak in error path

 drivers/net/usb/cdc_ncm.c |   47 ++++++++++++++++++++++++++++++++++++--------
 1 files changed, 38 insertions(+), 9 deletions(-)
Just curious, but which tree would this be pulled into?  usb or net or?

josh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help