net: Add FLOWI_FLAG_CAN_SLEEP.
[deliverable/linux.git] / net / ipv4 / udp.c
index 790187b5c308b28e11765e2a22293bc2596acf54..c6bcc93debd5f4334abc90880c2ede0d3353a7db 100644 (file)
@@ -914,9 +914,11 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
                                    .fl4_src = saddr,
                                    .fl4_tos = tos,
                                    .proto = sk->sk_protocol,
-                                   .flags = inet_sk_flowi_flags(sk),
+                                   .flags = (inet_sk_flowi_flags(sk) |
+                                             FLOWI_FLAG_CAN_SLEEP),
                                    .fl_ip_sport = inet->inet_sport,
-                                   .fl_ip_dport = dport };
+                                   .fl_ip_dport = dport
+               };
                struct net *net = sock_net(sk);
 
                security_sk_classify_flow(sk, &fl);
This page took 0.032481 seconds and 5 git commands to generate.