]> git.baikalelectronics.ru Git - kernel.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)
commit2cc1b991b66fb885512a361c443ec300393ee9ef
tree40f24811118d28edda9a99b40599f59913f01615
parent2bc08233e62e750916d95a98036f51ae0e4cf19e
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