]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink: use list_for_each_entry_safe to delete all objects
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 22 Aug 2016 13:58:16 +0000 (21:58 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 25 Aug 2016 11:11:00 +0000 (13:11 +0200)
commit262c4af30773d222e32d21adf84e89ee34804aa0
tree6c77b52fae33055b1dd65810111ad98aa604a255
parentde091885e2c45b10ae8aafccf1173a50e316e29f
netfilter: nfnetlink: use list_for_each_entry_safe to delete all objects

cttimeout and acct objects are deleted from the list while traversing
it, so use list_for_each_entry is unsafe here.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_acct.c
net/netfilter/nfnetlink_cttimeout.c