Commit 1b3b2d9
net: usb: smsc75xx: stop lying about skb->truesize
Some usb drivers try to set small skb->truesize and break
core networking stacks.
In this patch, I removed one of the skb->truesize override.
I also replaced one skb_clone() by an allocation of a fresh
and small skb, to get minimally sized skbs, like we did
in commit 1e2c611 ("net: cdc_ncm: reduce skb truesize
in rx path") and 4ce62d5 ("net: usb: ax88179_178a:
stop lying about skb->truesize")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Link: https://lore.kernel.org/r/20240506142358.3657918-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 9aad6e4 commit 1b3b2d9
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | | - | |
2238 | 2237 | | |
2239 | 2238 | | |
2240 | 2239 | | |
2241 | 2240 | | |
2242 | | - | |
| 2241 | + | |
| 2242 | + | |
2243 | 2243 | | |
2244 | 2244 | | |
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
2248 | | - | |
2249 | | - | |
2250 | | - | |
| 2248 | + | |
| 2249 | + | |
2251 | 2250 | | |
2252 | 2251 | | |
2253 | 2252 | | |
2254 | 2253 | | |
2255 | | - | |
2256 | | - | |
2257 | | - | |
2258 | 2254 | | |
2259 | 2255 | | |
2260 | 2256 | | |
| |||
0 commit comments