Commit 504744e4 authored by Zheng Yan's avatar Zheng Yan Committed by David S. Miller

ipv6: fix error propagation in ip6_ufo_append_data()

We should return errcode from sock_alloc_send_skb()
Signed-off-by: default avatarZheng Yan <zheng.z.yan@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3c20f72f
...@@ -1123,7 +1123,7 @@ static inline int ip6_ufo_append_data(struct sock *sk, ...@@ -1123,7 +1123,7 @@ static inline int ip6_ufo_append_data(struct sock *sk,
hh_len + fragheaderlen + transhdrlen + 20, hh_len + fragheaderlen + transhdrlen + 20,
(flags & MSG_DONTWAIT), &err); (flags & MSG_DONTWAIT), &err);
if (skb == NULL) if (skb == NULL)
return -ENOMEM; return err;
/* reserve space for Hardware header */ /* reserve space for Hardware header */
skb_reserve(skb, hh_len); skb_reserve(skb, hh_len);
......
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