summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2024-10-17 03:38:12 +0200
committerMichael S. Tsirkin <mst@redhat.com>2024-11-06 10:40:07 +0100
commit7f8825b2a78ac392d3fbb3a2e65e56d9e39d75e9 (patch)
tree124de8fd76a497a1b780303fe3c84bbb4cc79d42 /block
parentFix typo in vringh_test.c (diff)
downloadlinux-7f8825b2a78ac392d3fbb3a2e65e56d9e39d75e9.tar.xz
linux-7f8825b2a78ac392d3fbb3a2e65e56d9e39d75e9.zip
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: 5a2414bc454e ("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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions