ipv6: fix error propagation in ip6_ufo_append_data()

We should return errcode from sock_alloc_send_skb()

Signed-off-by: Zheng Yan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Zheng Yan 2011-10-28 00:26:00 -04:00 • committed by David S. Miller
commit 504744e4ed

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