Re: [PATCH] i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()

From: Wolfram Sang
Date: Wed Sep 20 2023 - 17:30:51 EST


On Thu, Mar 03, 2022 at 08:39:14PM +0800, xkernel.wang@xxxxxxxxxxx wrote:
> From: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>
>
> devm_kstrdup() returns pointer to allocated string on success,
> NULL on failure. So it is better to check the return value of it.
>
> Signed-off-by: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>

Applied to for-current, thanks!

Attachment: signature.asc
Description: PGP signature