aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-01-13 12:34:21 -0800
committerDavid S. Miller <davem@davemloft.net>2011-01-13 12:34:21 -0800
commit1949e084bfd143c76e22c0b37f370d6e7bf4bfdd (patch)
tree56fddb33e3a268fc7514dc718ec1a242b15a960d /net
parent3806b4f3b6115ce324b7125844f9e6acc80d34ec (diff)
parentf31e8d4982653b39fe312f9938be0f49dd9ab5fa (diff)
Merge branch 'master' of git://1984.lsi.us.es/net-2.6
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index 5cb8d3027b1..2b7eef37875 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -972,7 +972,8 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb,
free:
kfree_skb(skb2);
out:
- return err;
+ /* this avoids a loop in nfnetlink. */
+ return err == -EAGAIN ? -ENOBUFS : err;
}
#ifdef CONFIG_NF_NAT_NEEDED