greybus: power_supply: fix lock imbalance in init error path
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 7 Jan 2016 11:28:29 +0000 (12:28 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 12 Jan 2016 03:16:12 +0000 (19:16 -0800)
commite0d91ff127cf68e6369cfccd51af18b07bf462e3
tree83ba1490f4c8be24322c315734e069afad2c2454
parenta463fc1533c9ea2edc99306b31c74f472c62d690
greybus: power_supply: fix lock imbalance in init error path

Make sure to release the supplies_lock before returning on errors in
gb_power_supplies_setup().

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/power_supply.c