netfilter: nf_tables: fix a typo in nf_tables_getflowtable()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Jan 2018 07:04:54 +0000 (07:04 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 14:32:13 +0000 (15:32 +0100)
Fix a typo, we should check 'flowtable' instead of 'table'.

Fixes: 3b49e2e94e6e ("netfilter: nf_tables: add flow table netlink frontend")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c

index 0b814cb..b541e50 100644 (file)
@@ -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);