summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Yan <zheng.z.yan@intel.com>2011-10-28 04:26:00 (GMT)
committerDavid S. Miller <davem@davemloft.net>2011-10-28 04:26:00 (GMT)
commit504744e4edc24f6f16eed44a59b39bffcc0c1391 (patch)
tree6a54e48c8fb88cc927f9d146819565a94010a873
parent3c20f72f9108b2fcf30ec63d8a4203736c01ccd0 (diff)
downloadlinux-504744e4edc24f6f16eed44a59b39bffcc0c1391.tar.xz
ipv6: fix error propagation in ip6_ufo_append_data()
We should return errcode from sock_alloc_send_skb() Signed-off-by: Zheng Yan <zheng.z.yan@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv6/ip6_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index ff30047..84d0bd5 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -1123,7 +1123,7 @@ static inline int ip6_ufo_append_data(struct sock *sk,
hh_len + fragheaderlen + transhdrlen + 20,
(flags & MSG_DONTWAIT), &err);
if (skb == NULL)
- return -ENOMEM;
+ return err;
/* reserve space for Hardware header */
skb_reserve(skb, hh_len);