android_kernel_google_msm/drivers/clk
Pawel Moll 871d4f5e1d clk: Check parent for NULL in clk_change_rate
commit bf47b4fd8f upstream.

clk_change_rate() is accessing parent's rate without checking
if the parent exists at all. In case of root clocks this will
cause NULL pointer dereference.

This patch follows what clk_calc_new_rates() does in such
situation.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-07-19 08:58:59 -07:00
..
clk-divider.c clk: basic clock hardware types 2012-03-16 20:35:02 +00:00
clk-fixed-rate.c clk: basic clock hardware types 2012-03-16 20:35:02 +00:00
clk-gate.c clk: basic clock hardware types 2012-03-16 20:35:02 +00:00
clk-mux.c clk: basic clock hardware types 2012-03-16 20:35:02 +00:00
clk.c clk: Check parent for NULL in clk_change_rate 2012-07-19 08:58:59 -07:00
clkdev.c
Kconfig clk: make CONFIG_COMMON_CLK invisible 2012-03-19 09:37:11 +00:00
Makefile clk: basic clock hardware types 2012-03-16 20:35:02 +00:00