]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/tipc/udp_media.c
Merge tag 'trace-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux.git] / net / tipc / udp_media.c
index 86aaa4d3e781b58a2c64e48e02c09ee7097130de..ed113735c019e2a51a97c6bec274a5d160e3fd9f 100644 (file)
@@ -195,10 +195,13 @@ static int tipc_udp_xmit(struct net *net, struct sk_buff *skb,
                                .saddr = src->ipv6,
                                .flowi6_proto = IPPROTO_UDP
                        };
-                       err = ipv6_stub->ipv6_dst_lookup(net, ub->ubsock->sk,
-                                                        &ndst, &fl6);
-                       if (err)
+                       ndst = ipv6_stub->ipv6_dst_lookup_flow(net,
+                                                              ub->ubsock->sk,
+                                                              &fl6, NULL);
+                       if (IS_ERR(ndst)) {
+                               err = PTR_ERR(ndst);
                                goto tx_error;
+                       }
                        dst_cache_set_ip6(cache, ndst, &fl6.saddr);
                }
                ttl = ip6_dst_hoplimit(ndst);