revert "ocfs2/dlm: use list_for_each_entry instead of list_for_each"
authorAndrew Morton <[email protected]>
Fri, 11 Sep 2015 20:07:53 +0000 (13:07 -0700)
committerLinus Torvalds <[email protected]>
Fri, 11 Sep 2015 22:21:34 +0000 (15:21 -0700)
commite527b22c3f63c02832ac4cb8ed0ec3a9b638bbdf
tree8ed463c8a124a111ba3ba14fe2cdb768e9f2721c
parent4f1af60bcc2fc6caa7fa3036238b5994708e9a84
revert "ocfs2/dlm: use list_for_each_entry instead of list_for_each"

Revert commit f83c7b5e9fd6 ("ocfs2/dlm: use list_for_each_entry instead
of list_for_each").

list_for_each_entry() will dereference its `pos' argument, which can be
NULL in dlm_process_recovery_data().

Reported-by: Julia Lawall <[email protected]>
Reported-by: Fengguang Wu <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/dlm/dlmrecovery.c