netfilter: ctnetlink: get and zero operations must be atomic
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Dec 2011 13:11:39 +0000 (14:11 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Dec 2011 13:35:59 +0000 (14:35 +0100)
commit80e60e67bc4bbfe61b61a344f542af23e16abdbf
treec5269a9db0efcfb64ea83190b4b83500773711af
parentb9e61f0dff4b50e207ff4bb09472bda7881b21a9
netfilter: ctnetlink: get and zero operations must be atomic

The get and zero operations have to be done in an atomic context,
otherwise counters added between them will be lost.

This problem was spotted by Changli Gao while discussing the
nfacct infrastructure.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c