greybus: fix a bug in gb_operation_gbuf_complete()
authorAlex Elder <elder@linaro.org>
Wed, 5 Nov 2014 22:03:08 +0000 (16:03 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 5 Nov 2014 22:12:25 +0000 (14:12 -0800)
commit96fd8c2bfdda4b6a2223f235ebdd35e4d391d075
tree8bfa4c4b8134989f273e8c67f627316be925d286
parent2dcf6871dd19a8129929203776c57cddbb07bcc3
greybus: fix a bug in gb_operation_gbuf_complete()

The gbuf completion routine was using the request payload pointers
(which point at the area *past* the message header) rather than the
header.  This didn't matter much for now, it was only used in the
error path.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c