]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: complete overflow responses
authorAlex Elder <elder@linaro.org>
Thu, 20 Nov 2014 21:37:07 +0000 (15:37 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 21 Nov 2014 20:18:38 +0000 (12:18 -0800)
commit8d55f4c6d9a29f4b3483231f6d88458333ee36ed
tree5e19b902cf7c755bdc7444efedf49f5af77e2fc2
parente8b48d1586abd62dd1749520dccd4bac784ce680
greybus: complete overflow responses

If a response arrives for an operation request and the allotted
buffer isn't big enough we report the error, but we don't finish
processing the response.

Instead, set the operation result, but then finish processing
the response (no different from any other operation error).

This will allow the normal completion handling to occur for
this error case.

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