328-v4.16-netfilter-nf_tables-fix-a-typo-in-nf_tables_getflowt.patch 771 B

12345678910111213141516171819202122
  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. Fix a typo, we should check 'flowtable' instead of 'table'.
  5. Fixes: 3b49e2e94e6e ("netfilter: nf_tables: add flow table netlink frontend")
  6. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
  7. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  8. ---
  9. --- a/net/netfilter/nf_tables_api.c
  10. +++ b/net/netfilter/nf_tables_api.c
  11. @@ -5439,7 +5439,7 @@ static int nf_tables_getflowtable(struct
  12. flowtable = nf_tables_flowtable_lookup(table, nla[NFTA_FLOWTABLE_NAME],
  13. genmask);
  14. - if (IS_ERR(table))
  15. + if (IS_ERR(flowtable))
  16. return PTR_ERR(flowtable);
  17. skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL);