Re: [PATCH] gpio: syscon: fix a possible NULL dereference

2015-11-17 Thread Linus Walleij
On Thu, Nov 5, 2015 at 5:02 PM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 199: > priv->flags = of_id->data; > > Reported-by: coverity (CID 1324140) > Signed-off-by: LABBE Corentin Patch applied with Alexandre's review

Re: [PATCH] gpio: syscon: fix a possible NULL dereference

2015-11-17 Thread Linus Walleij
On Thu, Nov 5, 2015 at 5:02 PM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 199: > priv->flags = of_id->data; > > Reported-by: coverity (CID 1324140) > Signed-off-by: LABBE Corentin

Re: [PATCH] gpio: syscon: fix a possible NULL dereference

2015-11-08 Thread Alexandre Courbot
On Fri, Nov 6, 2015 at 1:02 AM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 199: > priv->flags = of_id->data; > > Reported-by: coverity (CID 1324140) > Signed-off-by: LABBE Corentin Same (optional) suggestion as the

Re: [PATCH] gpio: syscon: fix a possible NULL dereference

2015-11-08 Thread Alexandre Courbot
On Fri, Nov 6, 2015 at 1:02 AM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 199: > priv->flags = of_id->data; > > Reported-by: coverity (CID 1324140) > Signed-off-by: LABBE Corentin

[PATCH] gpio: syscon: fix a possible NULL dereference

2015-11-05 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later at line 199: priv->flags = of_id->data; Reported-by: coverity (CID 1324140) Signed-off-by: LABBE Corentin --- drivers/gpio/gpio-syscon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] gpio: syscon: fix a possible NULL dereference

2015-11-05 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later at line 199: priv->flags = of_id->data; Reported-by: coverity (CID 1324140) Signed-off-by: LABBE Corentin --- drivers/gpio/gpio-syscon.c | 3 +++ 1 file changed, 3 insertions(+) diff