linux-stable/drivers/net/ethernet/pensando
Shannon Nelson 6233c2d096 ionic: linearize tso skb with too many frags
[ Upstream commit d2c2142232 ]

We were linearizing non-TSO skbs that had too many frags, but
we weren't checking number of frags on TSO skbs.  This could
lead to a bad page reference when we received a TSO skb with
more frags than the Tx descriptor could support.

v2: use gso_segs rather than yet another division
    don't rework the check on the nr_frags

Fixes: 0f3154e6bc ("ionic: Add Tx and Rx handling")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-30 14:32:01 +02:00
..
ionic ionic: linearize tso skb with too many frags 2021-03-30 14:32:01 +02:00
Kconfig ionic: add DIMLIB to Kconfig 2020-09-17 18:00:30 -07:00
Makefile