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

From: Linus Walleij
Date: Fri Aug 10 2018 - 17:13:46 EST

On Mon, Aug 6, 2018 at 6:07 PM 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 (
> Signed-off-by: Anton Vasilyev <vasilyev@xxxxxxxxx>

Patch applied with Chen-Yu's ACK.

Linus Walleij