greybus: es1: fix DMA-buffer on stack
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 7 Apr 2015 09:27:10 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 7 Apr 2015 12:32:42 +0000 (14:32 +0200)
commit79940cf8759558d55b597e27353f6521516aa7ac
tree053e71e4e5f011acf41ef4c92a2eb1df5464a2da
parentb7744b7f97d1c86d2a480fdc53a22a042ac4dda9
greybus: es1: fix DMA-buffer on stack

A stack-allocated buffer is not generally DMA-able and must not be used
for USB control transfers.

Note that the memset and extra buffer byte were redundant as no more
than the bytes actually transferred was ever added to the fifo.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es1.c