From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: xkernel.wang@foxmail.com
Cc: peda@axentia.se, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()
Date: Wed, 20 Sep 2023 23:30:42 +0200 [thread overview]
Message-ID: <ZQtkgivCNyoTSjYt@shikoro> (raw)
In-Reply-To: <tencent_190A7366EE04872C45417894D2D33F240806@qq.com>
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
On Thu, Mar 03, 2022 at 08:39:14PM +0800, xkernel.wang@foxmail.com wrote:
> From: Xiaoke Wang <xkernel.wang@foxmail.com>
>
> 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@foxmail.com>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-09-20 21:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 12:39 [PATCH] i2c: mux: demux-pinctrl: check the return value of devm_kstrdup() xkernel.wang
2023-09-20 21:30 ` Wolfram Sang [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-16 4:35 xkernel.wang
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=ZQtkgivCNyoTSjYt@shikoro \
--to=wsa+renesas@sang-engineering.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peda@axentia.se \
--cc=xkernel.wang@foxmail.com \
/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