greybus: loopback: allocate a response even for a 0-byte request
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 19 Nov 2015 12:46:43 +0000 (13:46 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 20 Nov 2015 00:02:41 +0000 (16:02 -0800)
commit81ad6994611706270bc68a8dd951d7c69e2ed175
treeef7bb8a785c97cd4f879b37188a50f773f597638
parent9864756be7542d3fe4e18297e0a45b5e2dec2f62
greybus: loopback: allocate a response even for a 0-byte request

If payload length of a transfer packet is 0, no response is allocated.
Send a well-formed response even in that case.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c