Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652438

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

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] gpio: sta2x11: check the return value of irq_alloc_generic_chip()
Date 2017-05-29 13:40 +0200
Message-ID <tMrbI-7Eh-7@gated-at.bofh.it> (permalink)
References <tKWtj-5Qx-7@gated-at.bofh.it> <tKWtl-5Qx-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

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

Patch applied.

Yours,
Linus Walleij

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] gpio: check the return value of irq_alloc_generic_chip() Bartosz Golaszewski <brgl@bgdev.pl> - 2017-05-25 10:40 +0200
  [PATCH 1/3] gpio: pch: check the return value of irq_alloc_generic_chip() Bartosz Golaszewski <brgl@bgdev.pl> - 2017-05-25 10:40 +0200
    Re: [PATCH 1/3] gpio: pch: check the return value of irq_alloc_generic_chip() Linus Walleij <linus.walleij@linaro.org> - 2017-05-29 13:40 +0200
  [PATCH 2/3] gpio: sta2x11: check the return value of irq_alloc_generic_chip() Bartosz Golaszewski <brgl@bgdev.pl> - 2017-05-25 10:40 +0200
    Re: [PATCH 2/3] gpio: sta2x11: check the return value of irq_alloc_generic_chip() Linus Walleij <linus.walleij@linaro.org> - 2017-05-29 13:40 +0200

csiph-web