]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: atlantic: add check for MAX_SKB_FRAGS
authorGrant Grundler <grundler@chromium.org>
Tue, 10 May 2022 02:28:25 +0000 (19:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:18:01 +0000 (09:18 +0200)
commitcd66ab20a8f84474564a68fffffd37d998f6c340
tree81cc4b26f8da4982e085202bcee4d656f840808e
parent9bee8b4275ece3472b2492892708ac6c1efe4fbf
net: atlantic: add check for MAX_SKB_FRAGS

[ Upstream commit 6aecbba12b5c90b26dc062af3b9de8c4b3a2f19f ]

Enforce that the CPU can not get stuck in an infinite loop.

Reported-by: Aashay Shringarpure <aashay@google.com>
Reported-by: Yi Chou <yich@google.com>
Reported-by: Shervin Oloumi <enlightened@google.com>
Signed-off-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c