Re: [PATCH] pinctrl: axp209: Fix NULL pointer dereference after allocation

From: Chen-Yu Tsai
Date: Wed Aug 08 2018 - 05:13:32 EST


On Tue, Aug 7, 2018 at 12:06 AM, Anton Vasilyev <vasilyev@xxxxxxxxx> wrote:
> There is no check that allocation in axp20x_funcs_groups_from_mask
> is successful.
> The patch adds corresponding check and return values.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Anton Vasilyev <vasilyev@xxxxxxxxx>

Acked-by: Chen-Yu Tsai <wens@xxxxxxxx>