/[linux-patches]/genpatches-2.6/trunk/2.6.14/2100_zero-size-datagram.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/2100_zero-size-datagram.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (show annotations) (download) (as text)
Wed Nov 9 12:22:54 2005 UTC (14 years, 10 months ago) by dsd
File MIME type: text/x-diff
File size: 863 byte(s)
Fix a bug which caused BIND to fail after some time
1 From: Herbert Xu <herbert@gondor.apana.org.au>
2 Date: Wed, 2 Nov 2005 07:55:00 +0000 (+1100)
3 Subject: [NET]: Fix zero-size datagram reception
4 X-Git-Url: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=c75d721c761ad0f2d8725c40af9e4f376efefd24
5
6 [NET]: Fix zero-size datagram reception
7
8 The recent rewrite of skb_copy_datagram_iovec broke the reception of
9 zero-size datagrams. This patch fixes it.
10
11 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
12 Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
13 ---
14
15 --- a/net/core/datagram.c
16 +++ b/net/core/datagram.c
17 @@ -213,6 +213,10 @@ int skb_copy_datagram_iovec(const struct
18 {
19 int i, err, fraglen, end = 0;
20 struct sk_buff *next = skb_shinfo(skb)->frag_list;
21 +
22 + if (!len)
23 + return 0;
24 +
25 next_skb:
26 fraglen = skb_headlen(skb);
27 i = -1;

  ViewVC Help
Powered by ViewVC 1.1.20