No functional change. Just to split the if statement into different conditions to use kfree_skb_reason() to trace the reason later.
Unified · Split
| @@ -1086,7 +1086,10 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device *dev) · 1085 unmodified lines | ||
| 1086 | 1086 | goto drop; |
| 1087 | 1087 | |
| 1088 | 1088 | len = run_ebpf_filter(tun, skb, len); |
| 1089 | − if (len == 0 || pskb_trim(skb, len)) | |
| 1089 | + if (len == 0) | |
| 1090 | + goto drop; | |
| 1091 | + | |
| 1092 | + if (pskb_trim(skb, len)) | |
| 1090 | 1093 | goto drop; |
| 1091 | 1094 | |
| 1092 | 1095 | if (unlikely(skb_orphan_frags_rx(skb, GFP_ATOMIC))) |