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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux