You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
netfilter: nftables: fix a warning message in nf_tables_commit_audit_collect()
commitdadf33c9f6upstream. The first argument of a WARN_ONCE() is a condition. This WARN_ONCE() will only print the table name, and is potentially problematic if the table name has a %s in it. Fixes:c520292f29("audit: log nftables configuration change events once per table") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
059f47b3a4
commit
f3d0db3b43
@@ -7828,7 +7828,7 @@ static void nf_tables_commit_audit_collect(struct list_head *adl,
|
||||
if (adp->table == table)
|
||||
goto found;
|
||||
}
|
||||
WARN_ONCE("table=%s not expected in commit list", table->name);
|
||||
WARN_ONCE(1, "table=%s not expected in commit list", table->name);
|
||||
return;
|
||||
found:
|
||||
adp->entries++;
|
||||
|
||||
Reference in New Issue
Block a user