All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: 835703180@qq.com
Cc: dev@dpdk.org, Bruce Richardson <bruce.richardson@intel.com>
Subject: Re: [PATCH V2] raw/ioat: Check for the NULL pointer after calling malloc
Date: Mon, 10 Oct 2022 17:48:51 +0200	[thread overview]
Message-ID: <3161652.0WQXIW03uk@thomas> (raw)
In-Reply-To: <YsVQyoU1WyYYdAsr@bricha3-MOBL.ger.corp.intel.com>

06/07/2022 11:07, Bruce Richardson:
> On Wed, Jul 06, 2022 at 02:55:48PM +0800, 835703180@qq.com wrote:
> > From: Shiqi Liu <835703180@qq.com>
> > 
> > As the possible failure of the malloc(), the not_checked and
> > checked could be NULL pointer.
> > Therefore, it should be better to check it in order to avoid
> > the dereference of the NULL pointer.
> > 
> > Fixes: b7aaf417f93 ("raw/ioat: add bus driver for device scanning automatically")
> > Signed-off-by: Shiqi Liu <835703180@qq.com>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks.




      reply	other threads:[~2022-10-10 15:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-06  6:55 [PATCH V2] raw/ioat: Check for the NULL pointer after calling malloc 835703180
2022-07-06  9:07 ` Bruce Richardson
2022-10-10 15:48   ` Thomas Monjalon [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=3161652.0WQXIW03uk@thomas \
    --to=thomas@monjalon.net \
    --cc=835703180@qq.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.