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>
This commit is contained in:
Zheng Yan 2011-10-28 00:26:00 -04:00 committed by David S. Miller
parent 3c20f72f91
commit 504744e4ed
1 changed files with 1 additions and 1 deletions

View File

@ -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);