提交 504744e4 编写于 作者: Z Zheng Yan 提交者: David S. Miller

ipv6: fix error propagation in ip6_ufo_append_data()

We should return errcode from sock_alloc_send_skb()
Signed-off-by: NZheng Yan <zheng.z.yan@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3c20f72f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册