summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-11-09 14:47:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 14:04:27 +0100
commit4af0cd17e72461ec03d59b6a4d7cc769bf41b546 (patch)
treee2f5cee5a853f7e2c2c693cfcd6d23eade27791e /include
parentc842a4c4ae7fd604effbbb36bde7e1c251cb5c47 (diff)
gve: Fix off by one in gve_tx_timeout()
[ Upstream commit 1c360cc1cc883fbdf0a258b4df376571fbeac5ee ] The priv->ntfy_blocks[] has "priv->num_ntfy_blks" elements so this > needs to be >= to prevent an off by one bug. The priv->ntfy_blocks[] array is allocated in gve_alloc_notify_blocks(). Fixes: 87a7f321bb6a ("gve: Recover from queue stall due to missed IRQ") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions