dma_on_stack: ignore arrays which are a parameter
commit0e933204f2eba1a1a62be8e64887a8be12caf529
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Jan 2014 11:19:03 +0000 (6 14:19 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Jan 2014 11:19:03 +0000 (6 14:19 +0300)
tree2648f1da1923b3636fa5f432c84613647c24b078
parentbeefca2f8e5bac2ebdef10f17c9db56f59ef0bee
dma_on_stack: ignore arrays which are a parameter

You sometimes have things like:

static int pl2303_vendor_read(struct usb_serial *serial, u16 value,
      unsigned char buf[1])

In this case "buf[]" is not allocated on the stack.

Reported-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_dma_on_stack.c