netfilter: x_tables: return -ENOENT for non-existant matches/targets
authorPatrick McHardy <kaber@trash.net>
Mon, 14 Mar 2011 18:11:44 +0000 (19:11 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Mar 2011 18:11:44 +0000 (19:11 +0100)
commit42046e2e45c109ba703993c510401a11f716c8df
tree36bb1f61d73c1f8372ec596c92c0a70d7f29d14f
parentadb00ae2ea0ec65f9d3d06079950c0f0ade3b614
netfilter: x_tables: return -ENOENT for non-existant matches/targets

As Stephen correctly points out, we need to return -ENOENT in
xt_find_match()/xt_find_target() after the patch "netfilter: x_tables:
misuse of try_then_request_module" in order to properly indicate
a non-existant module to the caller.

Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/x_tables.c