]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix a wrong check to skip the inactive rules
authorLiping Zhang <liping.zhang@spreadtrum.com>
Tue, 14 Jun 2016 12:13:04 +0000 (20:13 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Jun 2016 10:17:24 +0000 (12:17 +0200)
commitc30c9ef422c6ce7804e7a917c4515c2e9f7870ff
tree2c344cfe404df472e3e31ee16244a8888b6f335b
parent534eb758035735e1051bcb9adfb3623b1e1aa7b2
netfilter: nf_tables: fix a wrong check to skip the inactive rules

nft_genmask_cur has already done left-shift operator on the gencursor,
so there's no need to do left-shift operator on it again.

Fixes: 13e7e79d56ea ("netfilter: nf_tables: add transaction helper functions")
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c