[PATCH] ARM: mvebu: potential dereference of null pointer

Andrew Lunn andrew at lunn.ch
Thu Jan 19 05:38:32 PST 2023


On Thu, Jan 19, 2023 at 10:51:18AM +0800, ye.xingchen at zte.com.cn wrote:
> From: Minghao Chi <chi.minghao at zte.com.cn>
> 
> The return value of kzalloc() needs to be checked.
> To avoid use of null pointer in case of the failure of alloc.
> 
> Reported-by: Zeal Robot <zealci at zte.com.cn>
> Signed-off-by: Minghao Chi <chi.minghao at zte.com.cn>
> Signed-off-by: ye xingchen <ye.xingchen at zte.com.cn>

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the linux-arm-kernel mailing list