]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/pci: add exception table to load/store instructions
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 16 Apr 2013 12:16:14 +0000 (14:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:37 +0000 (14:07 +0200)
commitf0bacb7fc4f7defb15a6575d92f8ea4342f8f09e
treef8e029110696a0cb846357a2b1e267015ec37e62
parentb2a9e87d2ce8fb2d0ce08ee49168805975c622da
s390/pci: add exception table to load/store instructions

Don't let pci_load and friends crash the kernel when called with
e.g. an invalid offset. Return -ENXIO instead.

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_insn.c