]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: return ENOMEM when ip_conntrack_alloc() fails.
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Wed, 10 Aug 2005 03:24:15 +0000 (20:24 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 22:51:28 +0000 (15:51 -0700)
commit1ab09a336b6b87ccb2e79f033c0ef07a79dc4ca4
treef485ca844f9b854ea53a92263d4cfb533849ee86
parent5e61be8c9c82e321b7ea94acb8fc1feec30711e0
[NETFILTER]: return ENOMEM when ip_conntrack_alloc() fails.

This patch fixes the bug which doesn't return ERR_PTR(-ENOMEM) if it
failed to allocate memory space from slab cache.  This bug leads to
erroneously not dropped packets under stress, and wrong statistic
counters ('invalid' is incremented instead of 'drop').  It was
introduced during the ctnetlink merge in the net-2.6.14 tree, so no
stable or mainline releases affected.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_core.c