netfilter: nf_tables: skip synchronize_rcu if transaction log is empty
authorFlorian Westphal <fw@strlen.de>
Wed, 25 Apr 2018 13:11:07 +0000 (15:11 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 Apr 2018 22:40:12 +0000 (00:40 +0200)
commit2f99aa31cd7a5d667f17dd2924c884c3d2c621ac
tree9a9c23b82f5accf90fe9489c3ce42e63ed323620
parentdceb48d86b4871984b8ce9ad5057fb2c01aa33de
netfilter: nf_tables: skip synchronize_rcu if transaction log is empty

After processing the transaction log, the remaining entries of the log
need to be released.

However, in some cases no entries remain, e.g. because the transaction
did not remove anything.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c