public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Xiaoke Wang <xkernel.wang@foxmail.com>
Cc: andreas.noever@gmail.com, michael.jamet@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: Wed, 15 Dec 2021 12:51:26 +0200	[thread overview]
Message-ID: <YbnIrsQGsjRnksq4@lahna> (raw)
In-Reply-To: <tencent_8268B88CD2F7BF04083AF35D6E2C87158506@qq.com>

Hi,

On Mon, Dec 13, 2021 at 04:27:15PM +0800, Xiaoke Wang wrote:
> Note: Compare with the last email, this one is using my full name.

This should go below the '---' line. Remember this next time, no need to
resend this one.

> 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: Xiaoke Wang <xkernel.wang@foxmail.com>

I sligthly modified the commit message and applied to
thunderbolt.git/next, thanks!

  parent reply	other threads:[~2021-12-15 10:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13  8:27 [PATCH] thunderbolt: check the return value of kmemdup() Xiaoke Wang
2021-12-13 14:09 ` Greg KH
2021-12-15 10:51 ` Mika Westerberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-12 16:51 xkernel
2021-12-13  6:10 ` Greg KH
2021-12-13  6:27   ` Xiaoke Wang
2021-12-13  6:31     ` Greg KH

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=YbnIrsQGsjRnksq4@lahna \
    --to=mika.westerberg@linux.intel.com \
    --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=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