]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e2349599fb362516b5c8210c888c3da56977591
tree7518820a5053b309a45df72f9f3f31254a6d52e9
parent63599219c0c8f24fe849a2b296a0f66511e0af66
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