Re: [PATCH 6/9] vfio-pci/zdev: fix possible segmentation fault issue

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

 



On 2/1/21 11:52 AM, Cornelia Huck wrote:
On Mon, 1 Feb 2021 16:28:25 +0000
Max Gurtovoy <mgurtovoy@xxxxxxxxxx> wrote:

In case allocation fails, we must behave correctly and exit with error.

Signed-off-by: Max Gurtovoy <mgurtovoy@xxxxxxxxxx>

Fixes: e6b817d4b821 ("vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO")

Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>

I think this should go in independently of this series. >

Agreed, makes sense to me -- thanks for finding.

Reviewed-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>

---
  drivers/vfio/pci/vfio_pci_zdev.c | 4 ++++
  1 file changed, 4 insertions(+)





[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