]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Fix wrong argument passed to eeh_rmv_device()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 24 Jun 2016 04:49:02 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2016 10:47:49 +0000 (20:47 +1000)
commit0e462ae8e51aa5fa60ffd9f7a3efe11d8efb87b5
tree825a4ef32f7229ccffbc452823faf1246e50ad56
parent7f7cd455ee08c3dc8f4d3253d7f91464092a4c30
powerpc/eeh: Fix wrong argument passed to eeh_rmv_device()

When calling eeh_rmv_device() in eeh_reset_device() for partial hotplug
case, @rmv_data instead of its address is the proper argument.
Otherwise, the stack frame is corrupted when writing to
@rmv_data (actually its address) in eeh_rmv_device(). It results in
kernel crash as observed.

This fixes the issue by passing @rmv_data, not its address to
eeh_rmv_device() in eeh_reset_device().

Fixes: 0f44eb882e06 ("powerpc/eeh: powerpc/eeh: Support error recovery for VF PE")
Reported-by: Pridhiviraj Paidipeddi <ppaidipe@in.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c