]> git.baikalelectronics.ru Git - kernel.git/commit
clk: gpio: Unlock mutex on error path
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 14 Jul 2015 19:45:19 +0000 (12:45 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 28 Jul 2015 18:51:39 +0000 (11:51 -0700)
commit8e2b1fdb7e3b663534c738c1948acdc50ce1fb96
tree1d4e9864101a7c05d01a5b05f46c19567d833838
parent2921e2c90da71fd34a36ac8627b63adb05cabc28
clk: gpio: Unlock mutex on error path

We don't unlock the mutex if we fail to allocate the parent names
array. Unlock it and return an error in this case as well.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Cc: Sergej Sawazki <ce3a@gmx.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-gpio.c