Re: [PATCH] gpio: adnp: Fix segfault if request_threaded_irq fails

2013-08-16 Thread Linus Walleij
On Wed, Aug 7, 2013 at 5:23 PM, Lars Poeschel wrote: > From: Lars Poeschel > > In case request_threaded_irq inside adnp_irq_setup fails, the driver > segfaults. This is because irq_domain_remove is called twice with > the same pointer. First time in adnp_irq_setup and then a second time > after

Re: [PATCH] gpio: adnp: Fix segfault if request_threaded_irq fails

2013-08-16 Thread Linus Walleij
On Wed, Aug 7, 2013 at 5:23 PM, Lars Poeschel la...@wh2.tu-dresden.de wrote: From: Lars Poeschel poesc...@lemonage.de In case request_threaded_irq inside adnp_irq_setup fails, the driver segfaults. This is because irq_domain_remove is called twice with the same pointer. First time in

[PATCH] gpio: adnp: Fix segfault if request_threaded_irq fails

2013-08-07 Thread Lars Poeschel
From: Lars Poeschel In case request_threaded_irq inside adnp_irq_setup fails, the driver segfaults. This is because irq_domain_remove is called twice with the same pointer. First time in adnp_irq_setup and then a second time after leaving adnp_irq_setup in the error path of adnp_i2c_probe inside

[PATCH] gpio: adnp: Fix segfault if request_threaded_irq fails

2013-08-07 Thread Lars Poeschel
From: Lars Poeschel poesc...@lemonage.de In case request_threaded_irq inside adnp_irq_setup fails, the driver segfaults. This is because irq_domain_remove is called twice with the same pointer. First time in adnp_irq_setup and then a second time after leaving adnp_irq_setup in the error path of