Re: WARNING: at lib/dma-debug.c:866 check_for_stack

From: Joerg Roedel
Date: Fri May 14 2010 - 07:26:05 EST


On Fri, May 14, 2010 at 10:56:46AM +0200, Zdenek Kabelac wrote:
> I've noticed my dvb-t tuner reports this Warning about stack usage for DMA.
> Is there some fix already available ?

int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props,
struct dvb_usb_device_description **desc, int *cold)
{
u8 b[16];
s16 ret = usb_control_msg(udev, usb_rcvctrlpipe(udev,0),
REQUEST_GET_VERSION, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, b, 16, USB_CTRL_GET_TIMEOUT);

...
}

The variable b is on the stack and used as the usb transfer buffer. This
should be easy to fix.

Joerg

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/