diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 790187b5c308..c6bcc93debd5 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -914,9 +914,11 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
914 | .fl4_src = saddr, | 914 | .fl4_src = saddr, |
915 | .fl4_tos = tos, | 915 | .fl4_tos = tos, |
916 | .proto = sk->sk_protocol, | 916 | .proto = sk->sk_protocol, |
917 | .flags = inet_sk_flowi_flags(sk), | 917 | .flags = (inet_sk_flowi_flags(sk) | |
918 | FLOWI_FLAG_CAN_SLEEP), | ||
918 | .fl_ip_sport = inet->inet_sport, | 919 | .fl_ip_sport = inet->inet_sport, |
919 | .fl_ip_dport = dport }; | 920 | .fl_ip_dport = dport |
921 | }; | ||
920 | struct net *net = sock_net(sk); | 922 | struct net *net = sock_net(sk); |
921 | 923 | ||
922 | security_sk_classify_flow(sk, &fl); | 924 | security_sk_classify_flow(sk, &fl); |