]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: ctnetlink: fix return value of ctnetlink_get_expect()
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Dec 2011 18:03:46 +0000 (19:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Dec 2011 18:49:04 +0000 (19:49 +0100)
commit81378f728fe560e175fb2e8fd33206793567e896
tree9b64245afa92a9790c9df00067250ed625c5156e
parent3f1e6d3fd37bd4f25e5b19f1c7ca21850426c33f
netfilter: ctnetlink: fix return value of ctnetlink_get_expect()

This fixes one bogus error that is returned to user-space:

libnetfilter_conntrack/utils# ./expect_get
TEST: get expectation (-1)(Unknown error 18446744073709551504)

This patch includes the correct handling for EAGAIN (nfnetlink
uses this error value to restart the operation after module
auto-loading).

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