summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ab8500-sysctrl.c
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@freescale.com>2015-04-15 22:26:36 +0800
committerStephen Boyd <sboyd@codeaurora.org>2015-05-06 16:58:53 -0700
commitd2a5d46b167a9a8231264daf80165b739aecf1d7 (patch)
treeaacc2fe63fde97d4263fbb9a2487a6dbc3fc01e3 /drivers/mfd/ab8500-sysctrl.c
parent5d45ed8f5bfaeaf50576b8d663796ee905ccf2a0 (diff)
downloadblackbird-op-linux-d2a5d46b167a9a8231264daf80165b739aecf1d7.tar.gz
blackbird-op-linux-d2a5d46b167a9a8231264daf80165b739aecf1d7.zip
clk: add missing lock when call clk_core_enable in clk_set_parent
Before commit 035a61c314eb ("clk: Make clk API return per-user struct clk instances") we acquired the enable_lock in __clk_set_parent_{before,after}() by means of calling clk_enable(). After commit 035a61c314eb we use clk_core_enable() in place of the clk_enable(), and clk_core_enable() doesn't acquire the enable_lock. This opens up a race condition between clk_set_parent() and clk_enable(). Fix it. Fixes: 035a61c314eb ("clk: Make clk API return per-user struct clk instances") Cc: Mike Turquette <mturquette@linaro.org> Cc: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/mfd/ab8500-sysctrl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud