linux-stable/drivers/pci/pcie
Yanjiang Jin 1063a5148a PCI/AER: Queue one GHES event, not several uninitialized ones
ecae65e133 ("PCI/AER: Use kfifo_in_spinlocked() to insert locked
elements") replaced kfifo_put() with kfifo_in_spinlocked(), but passed the
*size* of the queue entry, where kfifo_in_spinlocked() expects the *number*
of entries to be copied.

We want to insert only one element into kfifo, not "sizeof(entry) = 16".
Without this patch, we would get 15 uninitialized elements.

Fixes: ecae65e133 ("PCI/AER: Use kfifo_in_spinlocked() to insert locked elements")
Signed-off-by: Yanjiang Jin <yanjiang.jin@hxt-semitech.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
2018-12-14 11:29:37 -06:00
..
aer.c PCI/AER: Queue one GHES event, not several uninitialized ones 2018-12-14 11:29:37 -06:00
aer_inject.c PCI/AER: Refactor error injection fallbacks 2018-10-18 19:43:19 -05:00
aspm.c Revert "PCI/ASPM: Do not initialize link state when aspm_disabled is set" 2018-12-03 18:05:17 -06:00
dpc.c PCI: Make link active reporting detection generic 2018-10-02 16:04:40 -05:00
err.c PCI/ERR: Remove duplicated include from err.c 2018-10-02 16:04:40 -05:00
Kconfig PCI: pcie: Remove redundant 'default n' from Kconfig 2018-10-18 14:05:29 -05:00
Makefile PCI/AER: Hoist aerdrv.c, aer_inject.c up to drivers/pci/pcie/ 2018-06-11 08:11:39 -05:00
pme.c PCI/PME: Implement runtime PM callbacks 2018-10-02 16:04:40 -05:00
portdrv.h PCI/AER: Abstract AER interrupt handling 2018-10-18 19:43:09 -05:00
portdrv_core.c PCI/AER: Reuse existing pcie_port_find_device() interface 2018-10-18 19:42:54 -05:00
portdrv_pci.c PCI/portdrv: Add runtime PM hooks for port service drivers 2018-10-02 16:04:40 -05:00
ptm.c Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00