Go to file
Johan Hovold 0fb5acc401 greybus: operation: fix use-after-free when sending responses
Fix use-after-free when sending responses due to reference imbalance.

Make sure to take a reference to the operation when sending responses.
This reference is dropped in greybus_data_sent when the message has been
sent, while the initial reference is dropped in gb_operation_work after
processing the corresponding request.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2015-03-30 15:10:06 +02:00
drivers/staging/greybus greybus: operation: fix use-after-free when sending responses 2015-03-30 15:10:06 +02:00