eCryptfs: fix to use list_for_each_entry_safe() when delete items
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 21 Aug 2012 02:46:05 +0000 (10:46 +0800)
committerTyler Hicks <tyhicks@canonical.com>
Tue, 18 Dec 2012 16:07:29 +0000 (10:07 -0600)
commit8bbca57cff7f1b1fd046eebd1e9497a00161c2c1
tree3fda3c058123baf9087b1a32922ad6498aff1e39
parente4bc6522d53b7b8eb02cfac35fd18275fd86269d
eCryptfs: fix to use list_for_each_entry_safe() when delete items

Since we will be removing items off the list using list_del() we need
to use a safer version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe(). We should use the safe macro if the loop
involves deletions of items.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
[tyhicks: Fixed compiler err - missing list_for_each_entry_safe() param]
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/kthread.c