clk: fix possible null pointer dereference
authorStanimir Varbanov <svarbanov@mm-sol.com>
Mon, 5 Jan 2015 16:04:23 +0000 (18:04 +0200)
committerMichael Turquette <mturquette@linaro.org>
Sat, 17 Jan 2015 19:33:57 +0000 (11:33 -0800)
commitc7662fc59ca38517e0ec04ceaa123ed8209ab6bf
tree1558b888ae88613c645fdc15eecbe253492618d3
parent176a107b868781c8d6868454aea7d07e0b82d6b8
clk: fix possible null pointer dereference

The commit 646cafc6 (clk: Change clk_ops->determine_rate to
return a clk_hw as the best parent) opens a possibility for
null pointer dereference, fix this.

Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk.c