/[linux-patches]/genpatches-2.6/trunk/2.6.15-pre/1007_2_zero-size-datagram.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.15-pre/1007_2_zero-size-datagram.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (hide annotations) (download) (as text)
Mon Nov 21 13:08:30 2005 UTC (14 years, 10 months ago) by dsd
File MIME type: text/x-diff
File size: 1006 byte(s)
Creating 2.6.15-pre branch from 2.6.14
1 dsd 208 From stable-bounces@linux.kernel.org Wed Nov 2 15:36:17 2005
2     Date: Thu, 3 Nov 2005 07:55:38 +1100
3     To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>, netdev@vger.kernel.org, stable@kernel.org
4     Message-ID: <20051102205538.GA24276@gondor.apana.org.au>
5     Content-Disposition: inline
6     From: Herbert Xu <herbert@gondor.apana.org.au>
7     Cc: phillips@istop.com
8     Subject: [NET] Fix zero-size datagram reception
9    
10     The recent rewrite of skb_copy_datagram_iovec broke the reception of
11     zero-size datagrams. This patch fixes it.
12    
13     Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14     Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15    
16     ---
17     net/core/datagram.c | 4 ++++
18     1 file changed, 4 insertions(+)
19    
20     --- linux-2.6.14.1.orig/net/core/datagram.c
21     +++ linux-2.6.14.1/net/core/datagram.c
22     @@ -213,6 +213,10 @@ int skb_copy_datagram_iovec(const struct
23     {
24     int i, err, fraglen, end = 0;
25     struct sk_buff *next = skb_shinfo(skb)->frag_list;
26     +
27     + if (!len)
28     + return 0;
29     +
30     next_skb:
31     fraglen = skb_headlen(skb);
32     i = -1;

  ViewVC Help
Powered by ViewVC 1.1.20