From: David Miller <davem@davemloft.net>
To: colin.king@canonical.com
Cc: jakub.kicinski@netronome.com, lauro.venancio@openbossa.org,
aloisio.almeida@openbossa.org, sameo@linux.intel.com,
rolf.neugebauer@netronome.com, christophe.ricard@gmail.com,
robert.dolca@intel.com, oss-drivers@netronome.com,
netdev@vger.kernel.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH][V2] nfp: check idx is -ENOSPC before using it is an index
Date: Mon, 11 Jul 2016 13:52:18 -0700 (PDT) [thread overview]
Message-ID: <20160711.135218.1535273154348680313.davem@davemloft.net> (raw)
In-Reply-To: <1468252460-15117-1-git-send-email-colin.king@canonical.com>
From: Colin King <colin.king@canonical.com>
Date: Mon, 11 Jul 2016 16:54:20 +0100
> From: Colin Ian King <colin.king@canonical.com>
>
> idx can be returned as -ENOSPC, so we should check for this first
> before using it as an index into nn->vxlan_usecnt[] to avoid an
> out of bounds array offset read.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied to net-next.
prev parent reply other threads:[~2016-07-11 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-11 15:54 [PATCH][V2] nfp: check idx is -ENOSPC before using it is an index Colin King
[not found] ` <1468252460-15117-1-git-send-email-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2016-07-11 15:59 ` [oss-drivers] " Jakub Kicinski
2016-07-11 20:52 ` David Miller [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=20160711.135218.1535273154348680313.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=aloisio.almeida@openbossa.org \
--cc=christophe.ricard@gmail.com \
--cc=colin.king@canonical.com \
--cc=jakub.kicinski@netronome.com \
--cc=lauro.venancio@openbossa.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@netronome.com \
--cc=robert.dolca@intel.com \
--cc=rolf.neugebauer@netronome.com \
--cc=sameo@linux.intel.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).