Commit 03a0120f authored by Wei Yongjun's avatar Wei Yongjun Committed by Pablo Neira Ayuso
Browse files

netfilter: nf_tables: fix a typo in nf_tables_getflowtable()



Fix a typo, we should check 'flowtable' instead of 'table'.

Fixes: 3b49e2e9 ("netfilter: nf_tables: add flow table netlink frontend")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 20651cef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5225,7 +5225,7 @@ static int nf_tables_getflowtable(struct net *net, struct sock *nlsk,

	flowtable = nf_tables_flowtable_lookup(table, nla[NFTA_FLOWTABLE_NAME],
					       genmask);
	if (IS_ERR(table))
	if (IS_ERR(flowtable))
		return PTR_ERR(flowtable);

	skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL);