From: Pablo Neira Ayuso Date: Mon, 31 Mar 2014 10:26:39 +0000 (+0200) Subject: netfilter: nf_tables: fix wrong format in request_module() X-Git-Tag: v4.9.8~6586^2~10^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fec6bb6f484b1a88b4a325724234d6cfd08c918;p=platform%2Fkernel%2Flinux-rpi3.git netfilter: nf_tables: fix wrong format in request_module() The intended format in request_module is %.*s instead of %*.s. Reported-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 43ae487..3fd159d 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -152,8 +152,8 @@ nf_tables_chain_type_lookup(const struct nft_af_info *afi, #ifdef CONFIG_MODULES if (autoload) { nfnl_unlock(NFNL_SUBSYS_NFTABLES); - request_module("nft-chain-%u-%*.s", afi->family, - nla_len(nla)-1, (const char *)nla_data(nla)); + request_module("nft-chain-%u-%.*s", afi->family, + nla_len(nla), (const char *)nla_data(nla)); nfnl_lock(NFNL_SUBSYS_NFTABLES); type = __nf_tables_chain_type_lookup(afi->family, nla); if (type != NULL)