netfilter: ipset: Correct rcu_dereference() call in ip_set_put_comment()
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 19 Oct 2018 17:35:19 +0000 (19:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:13:03 +0000 (16:13 +0100)
commite395c9d2d9c3d4986b2d79e23efb0d2a7b14e465
treee5143724c18a495cd5de28072b3a457b1daa017f
parent1a7ccf42cb03cd9976134eea111cfc5168a0ea31
netfilter: ipset: Correct rcu_dereference() call in ip_set_put_comment()

[ Upstream commit 17b8b74c0f8dbf9b9e3301f9ca5b65dd1c079951 ]

The function is called when rcu_read_lock() is held and not
when rcu_read_lock_bh() is held.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/netfilter/ipset/ip_set_comment.h