[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZbdAidnNjjixkBnrBYK8eGhG5jPegkhEDppV-1o1mLfQ@mail.gmail.com>
Date: Thu, 10 Aug 2023 09:56:52 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Claudiu Beznea <claudiu.beznea@...rochip.com>
Cc: andriy.shevchenko@...ux.intel.com, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] pinctrl: mcp23s08: check return value of devm_kasprintf()
On Wed, Jun 21, 2023 at 12:04 PM Claudiu Beznea
<claudiu.beznea@...rochip.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@...rochip.com>
Patch applied!
Yours,
Linus Walleij
Powered by blists - more mailing lists