clk: ti: autoidle: add checks against NULL pointer reference
authorTero Kristo <t-kristo@ti.com>
Mon, 7 Sep 2020 08:25:58 +0000 (11:25 +0300)
committerStephen Boyd <sboyd@kernel.org>
Tue, 22 Sep 2020 20:00:07 +0000 (13:00 -0700)
commitcec4a609a88823084bf09cb2cdacda63a363593a
tree682695287063726c9a81935309890b19ce49aef9
parent4630ef134e41389a7170b05790c0ddcd88977b01
clk: ti: autoidle: add checks against NULL pointer reference

The clk pointer passed to omap2_clk_(deny|allow)_idle can be NULL, so
add checks for this.

Reported-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Link: https://lore.kernel.org/r/20200907082600.454-2-t-kristo@ti.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ti/autoidle.c