Skip to content

Commit 2fec6bb

Browse files
committed
netfilter: nf_tables: fix wrong format in request_module()
The intended format in request_module is %.*s instead of %*.s. Reported-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent a9bdd83 commit 2fec6bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ nf_tables_chain_type_lookup(const struct nft_af_info *afi,
152152
#ifdef CONFIG_MODULES
153153
if (autoload) {
154154
nfnl_unlock(NFNL_SUBSYS_NFTABLES);
155-
request_module("nft-chain-%u-%*.s", afi->family,
156-
nla_len(nla)-1, (const char *)nla_data(nla));
155+
request_module("nft-chain-%u-%.*s", afi->family,
156+
nla_len(nla), (const char *)nla_data(nla));
157157
nfnl_lock(NFNL_SUBSYS_NFTABLES);
158158
type = __nf_tables_chain_type_lookup(afi->family, nla);
159159
if (type != NULL)

0 commit comments

Comments
 (0)