projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netfilter: nft_compat: use the match->table to validate dependencies
[cascardo/linux.git]
/
net
/
netfilter
/
nft_compat.c
diff --git
a/net/netfilter/nft_compat.c
b/net/netfilter/nft_compat.c
index
70dc965
..
265e190
100644
(file)
--- a/
net/netfilter/nft_compat.c
+++ b/
net/netfilter/nft_compat.c
@@
-346,7
+346,7
@@
nft_match_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
union nft_entry e = {};
int ret;
union nft_entry e = {};
int ret;
- ret = nft_compat_chain_validate_dependency(match->
nam
e, ctx->chain);
+ ret = nft_compat_chain_validate_dependency(match->
tabl
e, ctx->chain);
if (ret < 0)
goto err;
if (ret < 0)
goto err;
@@
-420,7
+420,7
@@
static int nft_match_validate(const struct nft_ctx *ctx,
if (!(hook_mask & match->hooks))
return -EINVAL;
if (!(hook_mask & match->hooks))
return -EINVAL;
- ret = nft_compat_chain_validate_dependency(match->
nam
e,
+ ret = nft_compat_chain_validate_dependency(match->
tabl
e,
ctx->chain);
if (ret < 0)
return ret;
ctx->chain);
if (ret < 0)
return ret;