Re: [PATCH 2/3] gpio: sta2x11: check the return value of irq_alloc_generic_chip()

From: Linus Walleij
Date: Mon May 29 2017 - 07:34:09 EST


On Thu, May 25, 2017 at 10:37 AM, Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> This function can fail, so check the return value before dereferencing
> the returned pointer.
>
> Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>

Patch applied.

Yours,
Linus Walleij