linux-stable/drivers/vdpa/ifcvf
Yuan Can 7f8825b2a7 vDPA/ifcvf: Fix pci_read_config_byte() return code handling
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>
2024-11-06 04:40:07 -05:00
..
ifcvf_base.c vDPA/ifcvf: Fix pci_read_config_byte() return code handling 2024-11-06 04:40:07 -05:00
ifcvf_base.h vdpa: Remove unused declarations 2024-09-25 07:07:43 -04:00
ifcvf_main.c vDPA: add missing MODULE_DESCRIPTION() macros 2024-07-09 08:42:41 -04:00
Makefile vdpa: move to drivers/vdpa 2020-04-02 10:41:40 -04:00