LKML Archive on
help / color / mirror / Atom feed
From: David Miller <>
Subject: Re: [PATCH net-next] enetc: Fix an off by one in enetc_setup_tc_txtime()
Date: Tue, 07 Jan 2020 13:47:11 -0800 (PST)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20200107131143.jqytedvewberqp5c@kili.mountain>

From: Dan Carpenter <>
Date: Tue, 7 Jan 2020 16:11:43 +0300

> The priv->tx_ring[] has 16 elements but only priv->num_tx_rings are
> set up, the rest are NULL.  This ">" comparison should be ">=" to avoid
> a potential crash.
> Fixes: 0d08c9ec7d6e ("enetc: add support time specific departure base on the qos etf")
> Signed-off-by: Dan Carpenter <>


      reply	other threads:[~2020-01-07 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-07 13:11 Dan Carpenter
2020-01-07 21:47 ` 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH net-next] enetc: Fix an off by one in enetc_setup_tc_txtime()' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).