Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-16 Thread Gustavo A. R. Silva
On 07/09/2017 01:08 PM, Jonathan Cameron wrote: On Sat, 8 Jul 2017 15:42:46 +0200 Martin Blumenstingl wrote: On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva wrote: Check return value from call to of_match_device() in order

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-16 Thread Gustavo A. R. Silva
On 07/09/2017 01:08 PM, Jonathan Cameron wrote: On Sat, 8 Jul 2017 15:42:46 +0200 Martin Blumenstingl wrote: On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva wrote: Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-10 Thread Gustavo A. R. Silva
Hi Martin, Quoting Martin Blumenstingl : On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva wrote: Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print error

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-10 Thread Gustavo A. R. Silva
Hi Martin, Quoting Martin Blumenstingl : On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva wrote: Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print error message and return -ENODEV Signed-off-by: Gustavo A. R. Silva

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-09 Thread Jonathan Cameron
On Sat, 8 Jul 2017 15:42:46 +0200 Martin Blumenstingl wrote: > On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva > wrote: > > Check return value from call to of_match_device() > > in order to prevent a NULL pointer dereference. > >

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-09 Thread Jonathan Cameron
On Sat, 8 Jul 2017 15:42:46 +0200 Martin Blumenstingl wrote: > On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva > wrote: > > Check return value from call to of_match_device() > > in order to prevent a NULL pointer dereference. > > > > In case of NULL print error message and return -ENODEV >

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-08 Thread Martin Blumenstingl
On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva wrote: > Check return value from call to of_match_device() > in order to prevent a NULL pointer dereference. > > In case of NULL print error message and return -ENODEV > > Signed-off-by: Gustavo A. R. Silva

Re: [PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-08 Thread Martin Blumenstingl
On Fri, Jul 7, 2017 at 8:46 AM, Gustavo A. R. Silva wrote: > Check return value from call to of_match_device() > in order to prevent a NULL pointer dereference. > > In case of NULL print error message and return -ENODEV > > Signed-off-by: Gustavo A. R. Silva thanks for finding this. a crash here

[PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-07 Thread Gustavo A. R. Silva
Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print error message and return -ENODEV Signed-off-by: Gustavo A. R. Silva --- drivers/iio/adc/meson_saradc.c | 5 + 1 file changed, 5 insertions(+)

[PATCH] iio: adc: meson-saradc: add NULL check on of_match_device() return value

2017-07-07 Thread Gustavo A. R. Silva
Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print error message and return -ENODEV Signed-off-by: Gustavo A. R. Silva --- drivers/iio/adc/meson_saradc.c | 5 + 1 file changed, 5 insertions(+) diff --git