projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e896d
)
[PATCH] NET: Fix zero-size datagram reception
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 9 Nov 2005 18:22:12 +0000
(10:22 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Nov 2005 05:18:55 +0000
(21:18 -0800)
The recent rewrite of skb_copy_datagram_iovec broke the reception of
zero-size datagrams. This patch fixes it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/datagram.c
patch
|
blob
|
history
diff --git
a/net/core/datagram.c
b/net/core/datagram.c
index 81987df536eb83f04d28da673806693589582993..d219435d086c8d9a4d619b26b2d131dd74f8686d 100644
(file)
--- a/
net/core/datagram.c
+++ b/
net/core/datagram.c
@@
-213,6
+213,10
@@
int skb_copy_datagram_iovec(const struct sk_buff *skb, int offset,
{
int i, err, fraglen, end = 0;
struct sk_buff *next = skb_shinfo(skb)->frag_list;
+
+ if (!len)
+ return 0;
+
next_skb:
fraglen = skb_headlen(skb);
i = -1;