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

2019-04-04 Thread Linus Walleij
On Tue, Mar 12, 2019 at 10:19 PM Aditya Pakki wrote: > axp20x_build_funcs_groups allocates groups via devm_kcalloc and tries to > dereference without checking for NULL. This patch avoids such a > scenario. > > Signed-off-by: Aditya Pakki Patch applied. Yours, Linus Walleij

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

2019-03-23 Thread Aditya Pakki
Gentle reminder, Can someone review this patch. On 3/12/19 10:19 AM, Aditya Pakki wrote: > axp20x_build_funcs_groups allocates groups via devm_kcalloc and tries to > dereference without checking for NULL. This patch avoids such a > scenario. > > Signed-off-by: Aditya Pakki > --- >

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

2019-03-12 Thread Aditya Pakki
axp20x_build_funcs_groups allocates groups via devm_kcalloc and tries to dereference without checking for NULL. This patch avoids such a scenario. Signed-off-by: Aditya Pakki --- drivers/pinctrl/pinctrl-axp209.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2018-08-10 Thread Linus Walleij
On Mon, Aug 6, 2018 at 6:07 PM Anton Vasilyev 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

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

2018-08-10 Thread Linus Walleij
On Mon, Aug 6, 2018 at 6:07 PM Anton Vasilyev 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

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

2018-08-08 Thread Chen-Yu Tsai
On Tue, Aug 7, 2018 at 12:06 AM, Anton Vasilyev 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

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

2018-08-08 Thread Chen-Yu Tsai
On Tue, Aug 7, 2018 at 12:06 AM, Anton Vasilyev 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

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

2018-08-06 Thread Anton Vasilyev
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 --- drivers/pinctrl/pinctrl-axp209.c | 26

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

2018-08-06 Thread Anton Vasilyev
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 --- drivers/pinctrl/pinctrl-axp209.c | 26