Messages in this thread | | | From | Linus Walleij <> | Date | Fri, 7 Dec 2018 10:46:26 +0100 | Subject | Re: [PATCH 1/2] gpio: mt7621: report failure of devm_kasprintf() |
| |
On Wed, Nov 21, 2018 at 7:12 PM Nicholas Mc Guire <hofrat@osadl.org> wrote:
> kasprintf() may return NULL on failure of internal allocation thus the > assigned label is not safe if not explicitly checked. On error > mediatek_gpio_bank_probe() returns negative values so -ENOMEM in the > (unlikely) failure case should be fine here. > > Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> > Fixes: 4ba9c3afda41 ("gpio: mt7621: Add a driver for MT7621")
Patch applied with Bartosz and Sean's tags.
Yours, Linus Walleij
| |