]> git.baikalelectronics.ru Git - kernel.git/commit
ghes_edac: fix to use list_for_each_entry_safe() when delete list items
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 26 Feb 2013 08:39:14 +0000 (16:39 +0800)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 26 Feb 2013 13:05:35 +0000 (10:05 -0300)
commitfde712581833f1ef014459f747a5be5fd08b1466
tree45b3f34949a88cc223cc71bd7c69d774edcdfcee
parentf84c59284747a960e867ca1f1e03128079019e7c
ghes_edac: fix to use list_for_each_entry_safe() when delete list items

Since we will remove items off the list using list_del() we need
to use a safe version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/ghes_edac.c