video: ipu: Fix dereferencing NULL pointer problem
authorPeng Fan <[email protected]>
Tue, 2 Jan 2018 07:25:36 +0000 (15:25 +0800)
committerAnatolij Gustschin <[email protected]>
Wed, 3 Jan 2018 08:46:52 +0000 (09:46 +0100)
commitcca3ff054ab3e1f5f0d3f2d58da263cae201db50
tree463dba72c323aed737afe74110cdb8618cc33d65
parent1314bd1192b4c67d28bdae7eee639588e88090cd
video: ipu: Fix dereferencing NULL pointer problem

The clk_set_rate function dereferences the clk pointer without
checking whether it is NULL. This may cause problem when clk is NULL.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Anatolij Gustschin <[email protected]>
drivers/video/ipu_common.c