Skip to content
Commit db81c14c authored by Stefan Wahren's avatar Stefan Wahren Committed by Phil Elwell
Browse files

net: lan78xx: Fix race in tx skb size calculation (#2614)

The skb size calculation in lan78xx_tx_bh is in race with the start_xmit,
which could lead to kernel oopses. So protect the whole skb walk with
a spin lock. As a benefit we can unlink the skb directly.

See: https://github.com/raspberrypi/linux/issues/2608



Signed-off-by: default avatarFloris Bos <bos@je-eigen-domein.nl>
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Fixes: 55d7de9d ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet")
parent 94996038
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment