From: Dong Aisheng Date: Wed, 15 Apr 2015 14:26:36 +0000 (+0800) Subject: clk: add missing lock when call clk_core_enable in clk_set_parent X-Git-Tag: omap-for-v4.3/legacy-v2-signed~327^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2a5d46b167a9a8231264daf80165b739aecf1d7;p=pandora-kernel.git 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 Cc: Stephen Boyd Signed-off-by: Dong Aisheng Signed-off-by: Stephen Boyd --- Reading git-diff-tree failed