Re: [PATCH v2] pinctrl: mcp23s08: check return value of devm_kasprintf()

From: Linus Walleij
Date: Thu Aug 10 2023 - 03:57:08 EST


On Wed, Jun 21, 2023 at 12:04 PM Claudiu Beznea
<claudiu.beznea@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>

Patch applied!

Yours,
Linus Walleij