linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: xkernel <xkernel.wang@foxmail.com>
Cc: andreas.noever@gmail.com, michael.jamet@intel.com,
	mika.westerberg@linux.intel.com, YehezkelShB@gmail.com,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] thunderbolt: check the return value of kmemdup()
Date: Mon, 13 Dec 2021 07:10:43 +0100	[thread overview]
Message-ID: <Ybbj470ocCf7bj68@kroah.com> (raw)
In-Reply-To: <tencent_1AB342AE1B4723454E78A4D2FD3F33C81306@qq.com>

On Mon, Dec 13, 2021 at 12:51:33AM +0800, xkernel 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

  reply	other threads:[~2021-12-13  6:10 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 [this message]
2021-12-13  6:27   ` Xiaoke Wang
2021-12-13  6:31     ` Greg KH
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=Ybbj470ocCf7bj68@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).