[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200107.134711.1860200595614980441.davem@davemloft.net>
Date: Tue, 07 Jan 2020 13:47:11 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: claudiu.manoil@....com, po.liu@....com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] enetc: Fix an off by one in
enetc_setup_tc_txtime()
From: Dan Carpenter <dan.carpenter@...cle.com>
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 <dan.carpenter@...cle.com>
Applied.
Powered by blists - more mailing lists