linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: andriy.shevchenko@linux.intel.com, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] pinctrl: mcp23s08: check return value of devm_kasprintf()
Date: Thu, 10 Aug 2023 09:56:52 +0200	[thread overview]
Message-ID: <CACRpkdZbdAidnNjjixkBnrBYK8eGhG5jPegkhEDppV-1o1mLfQ@mail.gmail.com> (raw)
In-Reply-To: <20230621100409.1608395-1-claudiu.beznea@microchip.com>

On Wed, Jun 21, 2023 at 12:04 PM Claudiu Beznea
<claudiu.beznea@microchip.com> wrote:

> devm_kasprintf() returns a pointer to dynamically allocated memory.
> Pointer could be NULL in case allocation fails. Check pointer validity.
> Identified with coccinelle (kmerr.cocci script).
>
> Fixes: 0f04a81784fe ("pinctrl: mcp23s08: Split to three parts: core, I²C, SPI")
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>

Patch applied!

Yours,
Linus Walleij

      parent reply	other threads:[~2023-08-10  7:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21 10:04 [PATCH v2] pinctrl: mcp23s08: check return value of devm_kasprintf() Claudiu Beznea
2023-06-21 13:36 ` Andy Shevchenko
2023-08-10  7:56 ` Linus Walleij [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACRpkdZbdAidnNjjixkBnrBYK8eGhG5jPegkhEDppV-1o1mLfQ@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=claudiu.beznea@microchip.com \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).