]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack: fix count leak in error path of __nf_conntrack_alloc
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Apr 2012 14:45:54 +0000 (16:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Apr 2012 23:20:30 +0000 (19:20 -0400)
commitd94cc7a44073d084f7c2ffe93efd9e4115642673
treee021455bc7c25a1dfc80360b05caf5bc55dc68ae
parentb1b9c68f60ca2f98643d69b1026cbac5c42fe96c
netfilter: nf_conntrack: fix count leak in error path of __nf_conntrack_alloc

We have to decrement the conntrack counter if we fail to access the
zone extension.

Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_core.c