]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2022 11:25:07 +0000 (12:25 +0100)
commit1903971a8a74dee50a7b57b3b3ed0e84b5293b8c
tree141469645eb863fb6d534d7a60ed5e8274cb73ef
parent2c6c5d0bc6bb9cf5bc10fb2b78efa75434adc1df
net: atlantic: add check for MAX_SKB_FRAGS

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>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c