linux/arch/s390
Niklas Schnelle 42420c50c6 s390/pci: Fix missing check for zpci_create_device() error return
The zpci_create_device() function returns an error pointer that needs to
be checked before dereferencing it as a struct zpci_dev pointer. Add the
missing check in __clp_add() where it was missed when adding the
scan_list in the fixed commit. Simply not adding the device to the scan
list results in the previous behavior.

Cc: stable@vger.kernel.org
Fixes: 0467cdde8c ("s390/pci: Sort PCI functions prior to creating virtual busses")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2025-05-07 13:35:05 +02:00
..
appldata treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
boot s390: Use inline qualifier for all EX_TABLE and ALTERNATIVE inline assemblies 2025-03-18 17:13:51 +01:00
configs s390: Update defconfigs 2025-05-05 15:46:34 +02:00
crypto crypto: lib/chacha - remove unused arch-specific init support 2025-03-21 17:39:06 +08:00
hypfs fixes for bugs caught as part of tree-in-dcache work 2025-04-03 21:12:48 -07:00
include s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
kernel s390/entry: Fix last breaking event handling in case of stack corruption 2025-05-05 15:46:34 +02:00
kvm ARM: 2025-04-08 13:47:55 -07:00
lib s390 updates for 6.15 merge window 2025-03-29 11:59:43 -07:00
mm treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
net bpf: Introduce load-acquire and store-release instructions 2025-03-15 11:48:28 -07:00
pci s390/pci: Fix missing check for zpci_create_device() error return 2025-05-07 13:35:05 +02:00
purgatory s390/purgatory: Use -D__DISABLE_EXPORTS 2025-02-18 18:49:24 +01:00
tools s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Kconfig.debug s390/mm: Add configurable STRICT_MM_TYPECHECKS 2025-03-11 15:27:34 +01:00
Makefile s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00