Skip to content
Commit 7f8825b2 authored by Yuan Can's avatar Yuan Can Committed by Michael S. Tsirkin
Browse files

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: 5a2414bc ("virtio: Intel IFC VF driver for VDPA")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Message-Id: <20241017013812.129952-1-yuancan@huawei.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Acked-by: default avatarZhu Lingshan <lingshan.zhu@kernel.org>
parent 03a942f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment