linux-stable/drivers
Alex Elder 894cbc3136 greybus: update operation result atomically
An operation result can be set both in and out of interrupt context.
For example, a response message could be arriving at the same time a
timeout of the operation is getting processed.  We therefore need to
ensure the result is accessed atomically.

Protect updates to the errno field using the operations spinlock.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2014-11-25 15:05:35 -08:00
..
staging/greybus greybus: update operation result atomically 2014-11-25 15:05:35 -08:00