arch/um/drivers/line.c: safely iterate over list of winch handlers
authorWill Newton <will.newton@gmail.com>
Thu, 13 Jan 2011 00:59:26 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:07 +0000 (08:03 -0800)
commit48a0b7404db9b83799e97a7d599fceb8df66bf59
tree4350bfd2c1336aa36f16264c13874b36948615f0
parent94295e2305b4f4bf538dbdf9870fe04777320b75
arch/um/drivers/line.c: safely iterate over list of winch handlers

unregister_winch() should use list_for_each_safe(), as it can delete from
the list.

Signed-off-by: Will Newton <will.newton@gmail.com>
Cc: richard -rw- weinberger <richard.weinberger@gmail.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/line.c