]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: bundle: fix sleep-while-atomic in gb_bundle_destroy
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 13 Feb 2015 03:28:09 +0000 (11:28 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 14 Feb 2015 13:30:13 +0000 (21:30 +0800)
commit48d7077c007d27851952861d002d660b552b9888
tree331157ce96a447daa15bab475b8a8d98747a3439
parent067f3b6bfaa132269756e4e6d0c61360f8d6a4b5
greybus: bundle: fix sleep-while-atomic in gb_bundle_destroy

Make sure to release the spin lock protecting the interface bundle lists
before tearing down the connections and removing the bundle device,
which are operations that may sleep.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/bundle.c