Re: [PATCH 1/1] Preventive patch in the pin control subsystem to handle NULL check.

2018-08-30 Thread Linus Walleij
Hi Srikanth, thanks for your patch! On Mon, Aug 27, 2018 at 10:39 AM Srikanth K H wrote: @@ -269,8 +269,9 @@ void pinconf_show_setting(struct seq_file *s, > desc = pin_desc_get(setting->pctldev, > setting->data.configs.group_or_pin); > -

RE: [PATCH 1/1] Preventive patch in the pin control subsystem to handle NULL check.

2018-08-29 Thread Srikanth Korangala Hari
> If the pin descriptor requested for the physical pin fails then the > descriptor is dereferenced without checking for its validity which > may lead to crash, hence added preventive code to check for NULL > and accordingly dereference.   > Signed-off-by: Srikanth K H  > --- > drivers/pinctrl/pinco