From: Greg KH <gregkh@linuxfoundation.org>
To: Xiaoke Wang <xkernel.wang@foxmail.com>
Cc: linux-usb <linux-usb@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
"andreas.noever" <andreas.noever@gmail.com>,
"michael.jamet" <michael.jamet@intel.com>,
"mika.westerberg" <mika.westerberg@linux.intel.com>,
YehezkelShB <YehezkelShB@gmail.com>
Subject: Re: [PATCH] thunderbolt: check the return value of kmemdup()
Date: Mon, 13 Dec 2021 07:31:58 +0100 [thread overview]
Message-ID: <Ybbo3qBRpCR2Cl93@kroah.com> (raw)
In-Reply-To: <tencent_D34525AAFF71905A66815C118E0E8A96F007@qq.com>
On Mon, Dec 13, 2021 at 02:27:28PM +0800, Xiaoke Wang wrote:
> On Mon, Dec 13, 2021 02:10 PM, Greg KH wrote:
> > kmemdup() return NULL when some internal memory errors happen, it is
> > better to check the return value of it. Otherwise, some memory errors
> > will not be catched in time and may further result in wrong memory> access.
> >
> > Signed-off-by: xkernel <xkernel.wang@foxmail.com>
> >
> > Please use your "full" name, I doubt you sign documents as "xkernel". :)
> >
> > thanks,
> >
> > greg k-h
>
> I am very sorry about that, my full name is "Xiaoke Wang".
Great, please fix up and resend (also fix the From: line in your email
client to show that.)
thanks,
greg k-h
next prev parent reply other threads:[~2021-12-13 6:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 16:51 [PATCH] thunderbolt: check the return value of kmemdup() xkernel
2021-12-13 6:10 ` Greg KH
2021-12-13 6:27 ` Xiaoke Wang
2021-12-13 6:31 ` Greg KH [this message]
2021-12-13 8:27 Xiaoke Wang
2021-12-13 14:09 ` Greg KH
2021-12-15 10:51 ` Mika Westerberg
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=Ybbo3qBRpCR2Cl93@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=michael.jamet@intel.com \
--cc=mika.westerberg@linux.intel.com \
--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;
as well as URLs for NNTP newsgroup(s).