Re: [PATCH] mfd: sm501: Fix potential NULL pointer dereference

From: Lee Jones
Date: Mon Apr 01 2019 - 23:53:24 EST


On Sat, 02 Mar 2019, Aditya Pakki wrote:

> lookup variable on failure of allocating memory via devm_kzalloc
> can cause a NULL pointer dereference. This patch avoids such a scenario.
>
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>
> ---
> drivers/mfd/sm501.c | 3 +++
> 1 file changed, 3 insertions(+)

Applied, thanks.

--
Lee Jones [æçæ]
Linaro Services Technical Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog