linux/drivers/vdpa
Yuan Can 6fbf6ff754 vDPA/ifcvf: Fix pci_read_config_byte() return code handling
[ Upstream commit 7f8825b2a7 ]

ifcvf_init_hw() uses pci_read_config_byte() that returns
PCIBIOS_* codes. The error handling, however, assumes the codes are
normal errnos because it checks for < 0.
Convert the error check to plain non-zero check.

Fixes: 5a2414bc45 ("virtio: Intel IFC VF driver for VDPA")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Message-Id: <20241017013812.129952-1-yuancan@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Zhu Lingshan <lingshan.zhu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-11-17 15:08:57 +01:00
..
alibaba vdpa: Fix an error handling path in eni_vdpa_probe() 2024-01-25 15:35:54 -08:00
ifcvf vDPA/ifcvf: Fix pci_read_config_byte() return code handling 2024-11-17 15:08:57 +01:00
mlx5 vdpa/mlx5: Allow CVQ size changes 2024-03-26 18:20:10 -04:00
pds pds_vdpa: set features order 2024-01-20 11:51:41 +01:00
solidrun vdpa/snet: implement the resume vDPA callback 2023-06-27 10:47:08 -04:00
vdpa_sim vdpa_sim: reset must not run 2024-03-26 18:20:10 -04:00
vdpa_user vduse: Temporarily fail if control queue feature requested 2024-07-05 09:33:50 +02:00
virtio_pci vp_vdpa: fix the crash in hot unplug with vp_vdpa 2023-03-10 03:48:27 -05:00
Kconfig pds_vdpa: pds_vdps.rst and Kconfig 2023-06-27 10:47:09 -04:00
Makefile pds_vdpa: Add new vDPA driver for AMD/Pensando DSC 2023-06-27 10:47:08 -04:00
vdpa.c vdpa: Enable strict validation for netlinks ops 2023-08-10 15:24:28 -04:00