]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_acct: fix nfnl_acct_get operation
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Dec 2011 19:32:26 +0000 (20:32 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 1 Jan 2012 15:36:08 +0000 (16:36 +0100)
commit2ba144998f099a76163ec681b21e11a002e41bfa
treec676525f070f4400d562953ed4ca681cd12da4d9
parent157de4f4de5fc775cf2ba7a30fbc619907aaf86a
netfilter: nfnetlink_acct: fix nfnl_acct_get operation

The get operation was not sending the message that was built to
user-space. This patch also includes the appropriate handling for
the return value of netlink_unicast().

Moreover, fix error codes on error (for example, for non-existing
entry was uncorrect).

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