]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Fix wrong flag passed to eeh_unfreeze_pe()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 18 Jan 2017 23:10:16 +0000 (10:10 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jan 2017 10:22:51 +0000 (21:22 +1100)
commite483ff1bb350e6ced66830b2a8a520e3d46376d3
treee69e4796b878975a2ef711476427855c0f90d827
parent28dc97d5318aff8b714dfdbd372ee9e487cafb76
powerpc/eeh: Fix wrong flag passed to eeh_unfreeze_pe()

In __eeh_clear_pe_frozen_state(), we should pass the flag's value
instead of its address to eeh_unfreeze_pe(). The isolated flag is
cleared if no error returned from __eeh_clear_pe_frozen_state(). We
never observed the error from the function. So the isolated flag should
have been always cleared, no real issue is caused because of the misused
@flag.

This fixes the code by passing the value of @flag to eeh_unfreeze_pe().

Fixes: 57eb80446d7 ("powerpc/eeh: Emulate EEH recovery for VFIO devices")
Cc: stable@vger.kernel.org # v3.18+
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