Re: [PATCH] KVM: s390: pci: Fix allocation size of aift kzdev elements

From: Janosch Frank
Date: Wed Oct 26 2022 - 10:56:47 EST


On 10/26/22 15:36, Matthew Rosato wrote:
On 10/25/22 9:32 PM, Rafael Mendonca wrote:
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: 98b1d33dac5f ("KVM: s390: pci: do initial setup for AEN interpretation")
Signed-off-by: Rafael Mendonca <rafaelmendsr@xxxxxxxxx>

Thanks for reporting & fixing.

Reviewed-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>

After consulting Matt I've put this into the CI and I'll pick it once it received a bit of coverage.