summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDonald Hunter <donald.hunter@gmail.com>2024-11-01 15:32:07 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2024-11-14 12:39:40 +0100
commit3f5495962824fbef3b9a577ccd9b02f967452c11 (patch)
tree7e83af760e0a349da729198fca35f58596e770ff /net
parentMerge branch 'mlx5-esw-qos-refactor-and-shampo-cleanup' (diff)
downloadlinux-3f5495962824fbef3b9a577ccd9b02f967452c11.tar.xz
linux-3f5495962824fbef3b9a577ccd9b02f967452c11.zip
netfilter: nfnetlink: Report extack policy errors for batched ops
The nftables batch processing does not currently populate extack with policy errors. Fix this by passing extack when parsing batch messages. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nfnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c
index 7784ec094097..e598a2a252b0 100644
--- a/net/netfilter/nfnetlink.c
+++ b/net/netfilter/nfnetlink.c
@@ -517,7 +517,7 @@ replay_abort:
err = nla_parse_deprecated(cda,
ss->cb[cb_id].attr_count,
attr, attrlen,
- ss->cb[cb_id].policy, NULL);
+ ss->cb[cb_id].policy, &extack);
if (err < 0)
goto ack;