greybus: es1: fix buffer-size limit
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 7 Apr 2015 09:27:11 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 7 Apr 2015 12:32:42 +0000 (14:32 +0200)
commitbfd9a94d1aa2a8592749342d8024543ae3ff9e57
treeb746981acabf94df6bca7ebaf4f65d1fefca4fdf
parent79940cf8759558d55b597e27353f6521516aa7ac
greybus: es1: fix buffer-size limit

The maximum buffer size does not include the headroom, so subtract the
headroom size from the actual buffer size.

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