]> 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)
commit032e36be879c219d34219a3682ba7136083f8e04
tree7518820a5053b309a45df72f9f3f31254a6d52e9
parent7484ac77c94be02c0b68c2cd9df48dc1b1db8286
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