]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Fix system crash in ll2 xmit
authorManish Chopra <manishc@marvell.com>
Mon, 28 Jan 2019 18:05:07 +0000 (10:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:03:14 +0000 (14:03 -0700)
commitb757bcc92f8bfd24b239e2dc09b19cc6a1245f79
treea2ae744b8e6b4179fe41d2f5c89e36d3c8bbdbf0
parentdd155c87ca08b17ffebce151efda853080d67f96
qed: Fix system crash in ll2 xmit

[ Upstream commit 7c81626a3c37e4ac320b8ad785694ba498f24794 ]

Cache number of fragments in the skb locally as in case
of linear skb (with zero fragments), tx completion
(or freeing of skb) may happen before driver tries
to get number of frgaments from the skb which could
lead to stale access to an already freed skb.

Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_ll2.c