]> git.baikalelectronics.ru Git - kernel.git/commit
revert "ocfs2/dlm: use list_for_each_entry instead of list_for_each"
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 11 Sep 2015 20:07:53 +0000 (13:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Sep 2015 22:21:34 +0000 (15:21 -0700)
commit9886c8001917463d08b8513717beae6c4ab161dc
tree8ed463c8a124a111ba3ba14fe2cdb768e9f2721c
parentecaf7254488e9cf8e92d94be2617644160076349
revert "ocfs2/dlm: use list_for_each_entry instead of list_for_each"

Revert commit 15384aa6d7e8 ("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 <julia.lawall@lip6.fr>
Reported-by: Fengguang Wu <fengguang.wu@gmail.com>
Cc: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c