greybus: operation: allocate response before setting result
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 1 Jul 2015 10:37:30 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 1 Jul 2015 23:54:44 +0000 (16:54 -0700)
commitfde7382b47c5fbb64be81420d267f1e314cfee94
tree5e7eeabba220e14627c3c82c43e6b8165840f231
parent1635304d6384e258d197ca1bc5f2f6418eae28e2
greybus: operation: allocate response before setting result

Make sure to allocate a response message before setting the operation
result.

This is needed to handle cancellation of incoming operations.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/operation.c