mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
staging: octeon: Convert to skb_dst_drop
Instead of doing dst_release and skb_dst_set, do skb_dst_drop which should do the right thing. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stanislav Fomichev <sdf@fomichev.me> Link: https://patch.msgid.link/20250818154032.3173645-6-sdf@fomichev.me Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e97e6a1830
commit
da3b9d493b
|
|
@ -346,8 +346,7 @@ netdev_tx_t cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
* The skbuff will be reused without ever being freed. We must
|
||||
* cleanup a bunch of core things.
|
||||
*/
|
||||
dst_release(skb_dst(skb));
|
||||
skb_dst_set(skb, NULL);
|
||||
skb_dst_drop(skb);
|
||||
skb_ext_reset(skb);
|
||||
nf_reset_ct(skb);
|
||||
skb_reset_redirect(skb);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user