Commit 8aac7117 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[IPV6]: Set noblock to 1 in NDISC sock_alloc_send_skb calls.

parent 06da9228
...@@ -462,7 +462,7 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh, ...@@ -462,7 +462,7 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
} }
skb = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15, skb = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15,
0, &err); 1, &err);
if (skb == NULL) { if (skb == NULL) {
ND_PRINTK1("send_na: alloc skb failed\n"); ND_PRINTK1("send_na: alloc skb failed\n");
...@@ -546,7 +546,7 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh, ...@@ -546,7 +546,7 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh,
len += NDISC_OPT_SPACE(dev->addr_len); len += NDISC_OPT_SPACE(dev->addr_len);
skb = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15, skb = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15,
0, &err); 1, &err);
if (skb == NULL) { if (skb == NULL) {
ND_PRINTK1("send_ns: alloc skb failed\n"); ND_PRINTK1("send_ns: alloc skb failed\n");
return; return;
...@@ -616,7 +616,7 @@ void ndisc_send_rs(struct net_device *dev, struct in6_addr *saddr, ...@@ -616,7 +616,7 @@ void ndisc_send_rs(struct net_device *dev, struct in6_addr *saddr,
len += NDISC_OPT_SPACE(dev->addr_len); len += NDISC_OPT_SPACE(dev->addr_len);
skb = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15, skb = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15,
0, &err); 1, &err);
if (skb == NULL) { if (skb == NULL) {
ND_PRINTK1("send_ns: alloc skb failed\n"); ND_PRINTK1("send_ns: alloc skb failed\n");
return; return;
...@@ -1328,7 +1328,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh, ...@@ -1328,7 +1328,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
len += rd_len; len += rd_len;
buff = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15, buff = sock_alloc_send_skb(sk, MAX_HEADER + len + dev->hard_header_len + 15,
0, &err); 1, &err);
if (buff == NULL) { if (buff == NULL) {
ND_PRINTK1("ndisc_send_redirect: alloc_skb failed\n"); ND_PRINTK1("ndisc_send_redirect: alloc_skb failed\n");
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment