]> git.baikalelectronics.ru Git - kernel.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)
commit263e7ed78184d0d727876ee07641e145dea10772
tree9b64245afa92a9790c9df00067250ed625c5156e
parenta6947a0741b60bdc35c14d8a0a44c531cdb5acca
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