Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data
From: Linus Walleij
Date: Wed Sep 14 2016 - 05:06:32 EST
On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck <linux@xxxxxxxxxxxx> 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 <linux@xxxxxxxxxxxx>
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Should probably be tagged for stable.
Yours,
Linus Walleij