]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: fix unbalanced mutex
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 18:34:48 +0000 (13:34 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 18:28:16 +0000 (11:28 -0700)
commitebc9e3750d3112e3a84fe65386cb0e5deb994e18
tree12c22d1a72de72537e32e8e8b6e4110402383a1a
parentf9340fc7dd9f42edfcd7a0e332798ae01a6b48ac
greybus: fix unbalanced mutex

Running "make coccicheck" on the Greybus code reports that
gb_mmc_get_ro() and gb_mmc_get_cd() can return without releasing
the mutex it acquired if there's an error.  Fix this.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/sdio.c