From: Mike Turquette Date: Mon, 26 Mar 2012 21:45:36 +0000 (-0700) Subject: clk: core: clk_calc_new_rates handles NULL parents X-Git-Tag: v3.5-rc1~71^2~6^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7452b2191cd55fb3fd6ad65344466ddcdbe4676e;p=pandora-kernel.git clk: core: clk_calc_new_rates handles NULL parents It is possible to call clk_set_rate on a clock with a NULL parent. One such example is an adjustable-rate root clock. Ensure that clk_calc_new_rates does not dereference parent without checking first and also handle the corner cases gracefully. Reported-by: Rajendra Nayak Signed-off-by: Mike Turquette --- Reading git-diff-tree failed