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>