Re: [PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-21 Thread Linus Walleij
On Thu, Sep 21, 2017 at 7:14 AM, Arvind Yadav wrote: > devm_kasprintf() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav > --- > changes in v2 : > Set return 'err' to -ENOMEM. Patch applied. Yours, Linus Walleij

[PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Set return 'err' to -ENOMEM. drivers/gpio/gpio-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brc