Skip to content

Commit

Permalink
ipv6: fix error propagation in ip6_ufo_append_data()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zheng Yan authored and David S. Miller committed Oct 28, 2011
1 parent 3c20f72 commit 504744e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 504744e

Please sign in to comment.