diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/af_inet.c | 1 | ||||
-rw-r--r-- | net/ipv4/ipmr.c | 9 | ||||
-rw-r--r-- | net/ipv4/udp.c | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index e3286814c8d9..b1462e8c64cf 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1114,6 +1114,7 @@ int inet_sk_rebuild_header(struct sock *sk) | |||
1114 | }, | 1114 | }, |
1115 | }, | 1115 | }, |
1116 | .proto = sk->sk_protocol, | 1116 | .proto = sk->sk_protocol, |
1117 | .flags = inet_sk_flowi_flags(sk), | ||
1117 | .uli_u = { | 1118 | .uli_u = { |
1118 | .ports = { | 1119 | .ports = { |
1119 | .sport = inet->sport, | 1120 | .sport = inet->sport, |
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index ed372f3983e5..ee58bcbc99a5 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -1954,13 +1954,14 @@ int __init ip_mr_init(void) | |||
1954 | goto proc_cache_fail; | 1954 | goto proc_cache_fail; |
1955 | #endif | 1955 | #endif |
1956 | return 0; | 1956 | return 0; |
1957 | reg_notif_fail: | ||
1958 | kmem_cache_destroy(mrt_cachep); | ||
1959 | #ifdef CONFIG_PROC_FS | 1957 | #ifdef CONFIG_PROC_FS |
1960 | proc_vif_fail: | ||
1961 | unregister_netdevice_notifier(&ip_mr_notifier); | ||
1962 | proc_cache_fail: | 1958 | proc_cache_fail: |
1963 | proc_net_remove(&init_net, "ip_mr_vif"); | 1959 | proc_net_remove(&init_net, "ip_mr_vif"); |
1960 | proc_vif_fail: | ||
1961 | unregister_netdevice_notifier(&ip_mr_notifier); | ||
1964 | #endif | 1962 | #endif |
1963 | reg_notif_fail: | ||
1964 | del_timer(&ipmr_expire_timer); | ||
1965 | kmem_cache_destroy(mrt_cachep); | ||
1965 | return err; | 1966 | return err; |
1966 | } | 1967 | } |
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index fea2d873dd41..da869ce041d9 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -666,6 +666,7 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
666 | .saddr = saddr, | 666 | .saddr = saddr, |
667 | .tos = tos } }, | 667 | .tos = tos } }, |
668 | .proto = sk->sk_protocol, | 668 | .proto = sk->sk_protocol, |
669 | .flags = inet_sk_flowi_flags(sk), | ||
669 | .uli_u = { .ports = | 670 | .uli_u = { .ports = |
670 | { .sport = inet->sport, | 671 | { .sport = inet->sport, |
671 | .dport = dport } } }; | 672 | .dport = dport } } }; |