[U-Boot] [PATCH v2 1/2] video: ipu: Fix dereferencing NULL pointer problem

Anatolij Gustschin agust at denx.de
Wed Jan 3 11:33:50 UTC 2018


On Wed,  3 Jan 2018 12:20:49 +0100
Anatolij Gustschin agust at denx.de wrote:

> From: Peng Fan <peng.fan at nxp.com>
> 
> 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 <peng.fan at nxp.com>
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> ---
> Changes in v2:
>  - move the NULL check to top of function
>  
>  drivers/video/ipu_common.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

applied to u-boot-video/master, thanks!

--
Anatolij


More information about the U-Boot mailing list