linux-stable/arch/s390/pci
Sebastian Ott d648a9bdac s390/pci: fix sleeping in atomic during hotplug
commit 98dfd32620 upstream.

When triggered by pci hotplug (PEC 0x306) clp_get_state is called
with spinlocks held resulting in the following warning:

zpci: n/a: Event 0x306 reconfigured PCI function 0x0
BUG: sleeping function called from invalid context at mm/page_alloc.c:4324
in_atomic(): 1, irqs_disabled(): 0, pid: 98, name: kmcheck
2 locks held by kmcheck/98:

Change the allocation to use GFP_ATOMIC.

Cc: stable@vger.kernel.org # 4.13+
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-09 17:38:41 +01:00
..
Makefile s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
pci.c s390/pci: remove stale rc 2018-08-16 14:49:12 +02:00
pci_clp.c s390/pci: fix sleeping in atomic during hotplug 2019-01-09 17:38:41 +01:00
pci_debug.c s390/pci: remove fmb address from debug output 2018-08-16 14:49:13 +02:00
pci_dma.c dma-debug: move initialization to common code 2018-05-08 13:02:42 +02:00
pci_event.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci_insn.c s390/pci: handle insufficient resources during dma tlb flush 2017-12-13 10:51:33 +01:00
pci_mmio.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci_sysfs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00