netfilter: nf_log: wait for rcu grace after logger unregistration
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 Sep 2015 11:37:00 +0000 (13:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 Sep 2015 11:37:31 +0000 (13:37 +0200)
commitad5001cc7cdf9aaee5eb213fdee657e4a3c94776
tree932ff61bca8893ca6c7ff034eca2a04298b817e7
parentba378ca9c04a5fc1b2cf0f0274a9d02eb3d1bad9
netfilter: nf_log: wait for rcu grace after logger unregistration

The nf_log_unregister() function needs to call synchronize_rcu() to make sure
that the objects are not dereferenced anymore on module removal.

Fixes: 5962815a6a56 ("netfilter: nf_log: use an array of loggers instead of list")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_log.c