]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/pci: do not read data after failed load
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 16 Apr 2013 12:17:15 +0000 (14:17 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:38 +0000 (14:07 +0200)
commitb170bad40dab1a1684d629b37cb65a5281d35bd8
tree40f24811118d28edda9a99b40599f59913f01615
parentf0bacb7fc4f7defb15a6575d92f8ea4342f8f09e
s390/pci: do not read data after failed load

If a pci load instruction fails the content of the register where the
data is stored is possibly unchanged. Fix the inline assembly wrapper
__pcilg to not return stale data. Additionally fix the callers of this
function who access uninitialized variables.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pci_io.h
arch/s390/pci/pci.c
arch/s390/pci/pci_insn.c