|
@@ -230,10 +230,6 @@ nft_target_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
|
|
union nft_entry e = {};
|
|
union nft_entry e = {};
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- ret = nft_compat_chain_validate_dependency(target->table, ctx->chain);
|
|
|
|
- if (ret < 0)
|
|
|
|
- goto err;
|
|
|
|
-
|
|
|
|
target_compat_from_user(target, nla_data(tb[NFTA_TARGET_INFO]), info);
|
|
target_compat_from_user(target, nla_data(tb[NFTA_TARGET_INFO]), info);
|
|
|
|
|
|
if (ctx->nla[NFTA_RULE_COMPAT]) {
|
|
if (ctx->nla[NFTA_RULE_COMPAT]) {
|
|
@@ -419,10 +415,6 @@ nft_match_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
|
|
union nft_entry e = {};
|
|
union nft_entry e = {};
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- ret = nft_compat_chain_validate_dependency(match->table, ctx->chain);
|
|
|
|
- if (ret < 0)
|
|
|
|
- goto err;
|
|
|
|
-
|
|
|
|
match_compat_from_user(match, nla_data(tb[NFTA_MATCH_INFO]), info);
|
|
match_compat_from_user(match, nla_data(tb[NFTA_MATCH_INFO]), info);
|
|
|
|
|
|
if (ctx->nla[NFTA_RULE_COMPAT]) {
|
|
if (ctx->nla[NFTA_RULE_COMPAT]) {
|