]> 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)
commit133df620e0ab811871be506164495e54e2f0a3a4
tree6c77b52fae33055b1dd65810111ad98aa604a255
parent841ab1875cece208c6f092e0c632525b9e556f66
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