]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
powerpc/eeh: Use safe list traversal when walking EEH devices
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 24 Jul 2013 02:24:56 +0000 (10:24 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:18:47 +0000 (14:18 +1000)
commit9feed42e93d2625db86423cedf8b4b2bed00779e
treeb0b7601fdd59bacaa9bbfb84b941eefe0ba1043b
parent807a827d4e7455a40e8f56ec2a67c57a91cab9f7
powerpc/eeh: Use safe list traversal when walking EEH devices

Currently, we're trasversing the EEH devices list using list_for_each_entry().
That's not safe enough because the EEH devices might be removed from
its parent PE while doing iteration. The patch replaces that with
list_for_each_entry_safe().

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_pe.c