summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-11-04 19:39:28 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-04 19:39:28 +0100
commit912cbe3c5be5afb28184bb2e49a48fa4a1b098db (patch)
tree07b324a87f7d67be6df5d3e82f986fecbb3c6c0b /net/core
parentMerge git://oss.sgi.com:8090/oss/git/xfs-2.6 (diff)
parent[PKT_SCHED]: Rework QoS and/or fair queueing configuration (diff)
downloadlinux-912cbe3c5be5afb28184bb2e49a48fa4a1b098db.tar.xz
linux-912cbe3c5be5afb28184bb2e49a48fa4a1b098db.zip
Merge master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6
Diffstat (limited to 'net/core')
-rw-r--r--net/core/datagram.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c
index 81987df536eb..d219435d086c 100644
--- 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;