netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv6: fix error propagation in ip6_ufo_append_data()
@ 2011-10-28  4:24 Yan, Zheng
  2011-10-28  4:26 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Yan, Zheng @ 2011-10-28  4:24 UTC (permalink / raw)
  To: netdev@vger.kernel.org, davem@davemloft.net

We should return errcode from sock_alloc_send_skb()

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
---
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index ff30047..84d0bd5 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipv6: fix error propagation in ip6_ufo_append_data()
  2011-10-28  4:24 [PATCH] ipv6: fix error propagation in ip6_ufo_append_data() Yan, Zheng
@ 2011-10-28  4:26 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-10-28  4:26 UTC (permalink / raw)
  To: zheng.z.yan; +Cc: netdev

From: "Yan, Zheng" <zheng.z.yan@intel.com>
Date: Fri, 28 Oct 2011 12:24:20 +0800

> We should return errcode from sock_alloc_send_skb()
> 
> Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-28  4:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  4:24 [PATCH] ipv6: fix error propagation in ip6_ufo_append_data() Yan, Zheng
2011-10-28  4:26 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).