Commit 9aad6e4
usb: aqc111: stop lying about skb->truesize
Some usb drivers try to set small skb->truesize and break
core networking stacks.
I replace 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")
Fixes: 361459c ("net: usb: aqc111: Implement RX data path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240506135546.3641185-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent eb709b5 commit 9aad6e4
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | | - | |
1145 | | - | |
| 1144 | + | |
1146 | 1145 | | |
1147 | 1146 | | |
1148 | 1147 | | |
1149 | 1148 | | |
1150 | | - | |
| 1149 | + | |
| 1150 | + | |
1151 | 1151 | | |
1152 | | - | |
1153 | 1152 | | |
1154 | | - | |
1155 | 1153 | | |
1156 | 1154 | | |
1157 | 1155 | | |
| |||
0 commit comments