From: Jiri Slaby <jirislaby@kernel.org>
To: Yi Yang <yiyang13@huawei.com>,
davem@davemloft.net, gregkh@linuxfoundation.org,
jag.raman@oracle.com
Cc: sparclinux@vger.kernel.org, linux-serial@vger.kernel.org
Subject: Re: [PATCH V2] tty: vcc: Add check for kstrdup() in vcc_probe()
Date: Mon, 11 Sep 2023 09:19:37 +0200 [thread overview]
Message-ID: <e7730b24-a38b-22ff-12cb-6d08fdb07955@kernel.org> (raw)
In-Reply-To: <20230904035220.48164-1-yiyang13@huawei.com>
On 04. 09. 23, 5:52, Yi Yang wrote:
> Add check for the return value of kstrdup() and return the error, if it
> fails in order to avoid NULL pointer dereference.
>
> Fixes: 5d171050e28f ("sparc64: vcc: Enable VCC port probe and removal")
> Signed-off-by: Yi Yang <yiyang13@huawei.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
--
js
suse labs
prev parent reply other threads:[~2023-09-11 7:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-04 3:52 [PATCH V2] tty: vcc: Add check for kstrdup() in vcc_probe() Yi Yang
2023-09-05 14:19 ` Hugo Villeneuve
2023-09-07 1:25 ` yiyang (D)
2023-09-07 13:31 ` Hugo Villeneuve
2023-09-11 7:19 ` Jiri Slaby [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=e7730b24-a38b-22ff-12cb-6d08fdb07955@kernel.org \
--to=jirislaby@kernel.org \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=jag.raman@oracle.com \
--cc=linux-serial@vger.kernel.org \
--cc=sparclinux@vger.kernel.org \
--cc=yiyang13@huawei.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).