mirror of https://gitee.com/openkylin/linux.git
bf47b4fd8f
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> Cc: stable@kernel.org |
||
---|---|---|
.. | ||
mxs | ||
spear | ||
Kconfig | ||
Makefile | ||
clk-divider.c | ||
clk-fixed-factor.c | ||
clk-fixed-rate.c | ||
clk-gate.c | ||
clk-mux.c | ||
clk.c | ||
clkdev.c |