Go to file
Johan Hovold 85109f7ddd greybus: operation: fix operation-destroy race
Make sure to acquire the connection-list lock atomically when releasing
the final reference.

This allows the list to be traversed and references to be acquired
(while holding the lock) without racing with the destructor.

Suggested-by: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2015-07-13 15:29:27 -07:00
drivers/staging/greybus greybus: operation: fix operation-destroy race 2015-07-13 15:29:27 -07:00