linux-stable/arch/s390
Rafael Mendonca eeeec230f9 KVM: s390: pci: Fix allocation size of aift kzdev elements
[ Upstream commit b6662e3777 ]

The 'kzdev' field of struct 'zpci_aift' is an array of pointers to
'kvm_zdev' structs. Allocate the proper size accordingly.

Reported by Coccinelle:
  WARNING: Use correct pointer type argument for sizeof

Fixes: 98b1d33dac ("KVM: s390: pci: do initial setup for AEN interpretation")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20221026013234.960859-1-rafaelmendsr@gmail.com
Message-Id: <20221026013234.960859-1-rafaelmendsr@gmail.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-16 10:03:54 +01:00
..
appldata
boot s390/boot: add secure boot trailer 2022-11-04 00:00:24 +09:00
configs s390: update defconfigs 2022-08-30 21:57:07 +02:00
crypto s390 updates for 5.20 merge window 2022-08-06 17:05:21 -07:00
hypfs s390/hypfs: avoid error message under KVM 2022-08-15 17:19:51 +02:00
include s390/futex: add missing EX_TABLE entry to __futex_atomic_op() 2022-11-04 00:00:24 +09:00
kernel s390/smp: enforce lowcore protection on CPU restart 2022-09-07 14:04:01 +02:00
kvm KVM: s390: pci: Fix allocation size of aift kzdev elements 2022-11-16 10:03:54 +01:00
lib s390/uaccess: add missing EX_TABLE entries to __clear_user() 2022-11-04 00:00:24 +09:00
mm s390/mm: remove useless hugepage address alignment 2022-08-30 21:57:07 +02:00
net s390/bpf: Fix typo in comment 2022-05-23 11:25:53 -07:00
pci s390/pci: add missing EX_TABLE entries to __pcistg_mio_inuser()/__pcilg_mio_inuser() 2022-11-04 00:00:24 +09:00
purgatory s390/purgatory: remove duplicated build rule of kexec-purgatory.o 2022-06-30 14:18:16 +02:00
tools KVM: s390: Add facility 197 to the allow list 2022-07-13 15:25:25 +02:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig Random number generator updates for Linux 6.0-rc1. 2022-08-02 17:31:35 -07:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile s390/nospec: remove unneeded header includes 2022-07-13 15:21:55 +02:00