czw., 11 lip 2019 o 10:47 Geert Uytterhoeven <ge...@linux-m68k.org> napisaƂ(a):
>
> CC Niklas, who has the hardware
>
> On Thu, Jul 11, 2019 at 10:29 AM Bartosz Golaszewski <b...@bgdev.pl> wrote:
> > From: Bartosz Golaszewski <bgolaszew...@baylibre.com>
> >
> > In commit 8764c4ca5049 ("gpio: em: use the managed version of
> > gpiochip_add_data()") we implicitly altered the ordering of resource
> > freeing: since gpiochip_remove() calls gpiochip_irqchip_remove()
> > internally, we now can potentially use the irq_domain after it was
> > destroyed in the remove() callback (as devm resources are freed after
> > remove() has returned).
> >
> > Use devm_add_action_or_reset() to keep the ordering right and entirely
> > kill the remove() callback in the driver.
> >
> > Reported-by: Geert Uytterhoeven <ge...@linux-m68k.org>
> > Fixes: 8764c4ca5049 ("gpio: em: use the managed version of 
> > gpiochip_add_data()")
> > Cc: sta...@vger.kernel.org
> > Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
>
> Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be>
>
> Gr{oetje,eeting}s,
>
>                         Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- 
> ge...@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like 
> that.
>                                 -- Linus Torvalds

Patch applied.

Reply via email to