TOMOYO: Change list iterator.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 24 Jun 2010 02:28:14 +0000 (11:28 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:34:44 +0000 (15:34 +1000)
commit475e6fa3d340e75a454ea09191a29e52e2ee6e71
tree44e8222ec250f8573199fc3132eaeb2f8922f85e
parent5448ec4f5062ef75ce74f8d7784d4cea9c46ad00
TOMOYO: Change list iterator.

Change list_for_each_cookie to

(1) start from current position rather than next position
(2) remove temporary cursor
(3) check that srcu_read_lock() is held

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/common.c
security/tomoyo/common.h