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

2017-05-29 Thread Linus Walleij
On Thu, May 25, 2017 at 10:37 AM, Bartosz Golaszewski wrote: > This function can fail, so check the return value before dereferencing > the returned pointer. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

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

2017-05-29 Thread Linus Walleij
On Thu, May 25, 2017 at 10:37 AM, Bartosz Golaszewski wrote: > This function can fail, so check the return value before dereferencing > the returned pointer. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

[PATCH 1/3] gpio: pch: check the return value of irq_alloc_generic_chip()

2017-05-25 Thread Bartosz Golaszewski
This function can fail, so check the return value before dereferencing the returned pointer. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-pch.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pch.c

[PATCH 1/3] gpio: pch: check the return value of irq_alloc_generic_chip()

2017-05-25 Thread Bartosz Golaszewski
This function can fail, so check the return value before dereferencing the returned pointer. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-pch.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c