clk: Correct handling of NULL clk in __clk_{get, put}
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 7 Jan 2014 12:03:43 +0000 (13:03 +0100)
committerMike Turquette <mturquette@linaro.org>
Tue, 25 Feb 2014 05:58:38 +0000 (21:58 -0800)
commit00efcb1c8e1c3c5e5d3ce6f0682d66402911a84f
tree7518820a5053b309a45df72f9f3f31254a6d52e9
parent624009a7f34669233ea3376796ee674ae9416245
clk: Correct handling of NULL clk in __clk_{get, put}

Ensure clk->kref is dereferenced only when clk is not NULL.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c