]> www.infradead.org Git - users/willy/linux.git/commitdiff
staging: octeon: Convert to skb_dst_drop
authorStanislav Fomichev <sdf@fomichev.me>
Mon, 18 Aug 2025 15:40:30 +0000 (08:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 00:54:38 +0000 (17:54 -0700)
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>
drivers/staging/octeon/ethernet-tx.c

index 261f8dbdc3827360bdff4565d511b47883a6ef84..0ba240e634a17fca3d917580460fdc6f3e6b4ec8 100644 (file)
@@ -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);