Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Guenter Roeck
On 09/14/2016 02:44 AM, Greg Kroah-Hartman wrote: On Wed, Sep 14, 2016 at 11:06:08AM +0200, Linus Walleij wrote: On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: irq_get_irq_data() can return NULL, which results in a nasty crash. Check its return value before passing

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Guenter Roeck
On 09/14/2016 02:44 AM, Greg Kroah-Hartman wrote: On Wed, Sep 14, 2016 at 11:06:08AM +0200, Linus Walleij wrote: On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: irq_get_irq_data() can return NULL, which results in a nasty crash. Check its return value before passing it on to

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Linus Walleij
On Wed, Sep 14, 2016 at 11:44 AM, Greg Kroah-Hartman wrote: > On Wed, Sep 14, 2016 at 11:06:08AM +0200, Linus Walleij wrote: >> On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: >> >> > irq_get_irq_data() can return NULL, which results in a

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Linus Walleij
On Wed, Sep 14, 2016 at 11:44 AM, Greg Kroah-Hartman wrote: > On Wed, Sep 14, 2016 at 11:06:08AM +0200, Linus Walleij wrote: >> On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: >> >> > irq_get_irq_data() can return NULL, which results in a nasty crash. >> > Check its return value before

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Greg Kroah-Hartman
On Wed, Sep 14, 2016 at 11:06:08AM +0200, Linus Walleij wrote: > On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: > > > irq_get_irq_data() can return NULL, which results in a nasty crash. > > Check its return value before passing it on to irqd_set_trigger_type(). > > > >

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Greg Kroah-Hartman
On Wed, Sep 14, 2016 at 11:06:08AM +0200, Linus Walleij wrote: > On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: > > > irq_get_irq_data() can return NULL, which results in a nasty crash. > > Check its return value before passing it on to irqd_set_trigger_type(). > > > > Signed-off-by:

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Linus Walleij
On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: > irq_get_irq_data() can return NULL, which results in a nasty crash. > Check its return value before passing it on to irqd_set_trigger_type(). > > Signed-off-by: Guenter Roeck Reviewed-by: Linus

Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-14 Thread Linus Walleij
On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: > irq_get_irq_data() can return NULL, which results in a nasty crash. > Check its return value before passing it on to irqd_set_trigger_type(). > > Signed-off-by: Guenter Roeck Reviewed-by: Linus Walleij Should probably be tagged for

[PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-13 Thread Guenter Roeck
irq_get_irq_data() can return NULL, which results in a nasty crash. Check its return value before passing it on to irqd_set_trigger_type(). Signed-off-by: Guenter Roeck --- drivers/base/platform.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data

2016-09-13 Thread Guenter Roeck
irq_get_irq_data() can return NULL, which results in a nasty crash. Check its return value before passing it on to irqd_set_trigger_type(). Signed-off-by: Guenter Roeck --- drivers/base/platform.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git