OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 From: Wei Yongjun <weiyongjun1@huawei.com>
2 Date: Wed, 10 Jan 2018 07:04:54 +0000
3 Subject: [PATCH] netfilter: nf_tables: fix a typo in nf_tables_getflowtable()
4  
5 Fix a typo, we should check 'flowtable' instead of 'table'.
6  
7 Fixes: 3b49e2e94e6e ("netfilter: nf_tables: add flow table netlink frontend")
8 Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
9 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
10 ---
11  
12 --- a/net/netfilter/nf_tables_api.c
13 +++ b/net/netfilter/nf_tables_api.c
3 office 14 @@ -5394,7 +5394,7 @@ static int nf_tables_getflowtable(struct
1 office 15  
16 flowtable = nf_tables_flowtable_lookup(table, nla[NFTA_FLOWTABLE_NAME],
17 genmask);
18 - if (IS_ERR(table))
19 + if (IS_ERR(flowtable))
20 return PTR_ERR(flowtable);
21  
22 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL);