clk: Don't try to use a struct clk* after it could have been freed

commit 10cdfe54da upstream.

As __clk_release could call kfree on clk and then we wouldn't have a safe way
of getting the module that owns the clock.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: fcb0ee6a3d ("clk: Implement clk_unregister")
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Tomeu Vizoso 2014-12-02 08:54:19 +01:00 • committed by Luis Henriques
commit cf211fafaa