clk: Really fix deadlock with mmap_sem
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 12 Dec 2014 23:04:16 +0000 (15:04 -0800)
committerMichael Turquette <mturquette@linaro.org>
Tue, 16 Dec 2014 01:02:06 +0000 (17:02 -0800)
commit89f7e9de59bf3e3cda2e00de12c66db22675a7cf
tree5c6581ff9dfb4fd9574025ef10aeb645b5835176
parentc9b928148eb430bc2beb486d94efd2c3bc439a0c
clk: Really fix deadlock with mmap_sem

Commit 6314b6796e3c (clk: Don't hold prepare_lock across debugfs
creation, 2014-09-04) forgot to update one place where we hold
the prepare_lock while creating debugfs directories. This means
we still have the chance of a deadlock that the commit was trying
to fix. Actually fix it by moving the debugfs creation outside
the prepare_lock.

Cc: <stable@vger.kernel.org> # 3.18
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Fixes: 6314b6796e3c "clk: Don't hold prepare_lock across debugfs creation"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
[mturquette@linaro.org: removed lockdep_assert]
drivers/clk/clk.c
This page took 0.024308 seconds and 5 git commands to generate.