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


Groups > linux.kernel > #1736615

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

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf
Date 2017-09-21 14:20 +0200
Message-ID <us8Cu-Sx-17@gated-at.bofh.it> (permalink)
References <us241-4Ve-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 21, 2017 at 7:14 AM, Arvind Yadav <arvind.yadav.cs@gmail.com> wrote:

> devm_kasprintf() can fail here and we must check its return value.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
> changes in v2 :
>                 Set return 'err' to -ENOMEM.

Patch applied.

Yours,
Linus Walleij

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


Thread

[PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-09-21 07:20 +0200
  Re: [PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf Linus Walleij <linus.walleij@linaro.org> - 2017-09-21 14:20 +0200

csiph-web