diff options
| author | Yuan Can <[email protected]> | 2024-10-17 01:38:12 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2024-11-06 09:40:07 +0000 |
| commit | 7f8825b2a78ac392d3fbb3a2e65e56d9e39d75e9 (patch) | |
| tree | 124de8fd76a497a1b780303fe3c84bbb4cc79d42 /drivers/platform/x86/intel/pmt/class.c | |
| parent | Fix typo in vringh_test.c (diff) | |
| download | kernel-7f8825b2a78ac392d3fbb3a2e65e56d9e39d75e9.tar.gz kernel-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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Acked-by: Zhu Lingshan <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
