From: Pawel Moll Date: Fri, 8 Jun 2012 13:04:06 +0000 (+0100) Subject: clk: Check parent for NULL in clk_change_rate X-Git-Tag: v3.5-rc5~22^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf47b4fd8f9f81cd5ce40e1945c6334d088226d1;p=pandora-kernel.git clk: Check parent for NULL in clk_change_rate 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 Signed-off-by: Mike Turquette Cc: stable@kernel.org --- Reading git-diff-tree failed