OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c20f72
)
ipv6: fix error propagation in ip6_ufo_append_data()
author
Zheng Yan
<zheng.z.yan@intel.com>
Fri, 28 Oct 2011 04:26:00 +0000
(
00:26
-0400)
committer
David S. Miller
<davem@davemloft.net>
Fri, 28 Oct 2011 04:26:00 +0000
(
00:26
-0400)
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>
net/ipv6/ip6_output.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ip6_output.c
b/net/ipv6/ip6_output.c
index
ff30047
..
84d0bd5
100644
(file)
--- 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);