kernel_samsung_a53x/drivers
Yuan Can 8cb8d617dc vDPA/ifcvf: Fix pci_read_config_byte() return code handling
[ Upstream commit 7f8825b2a78ac392d3fbb3a2e65e56d9e39d75e9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-30 02:33:27 +01:00
..
accessibility
acpi
amba
android
ata Revert "ata: libata-core: Fix null pointer dereference on error" 2024-11-24 00:23:50 +01:00
atm
auxdisplay
base Revert "devres: Initialize an uninitialized struct member" 2024-11-24 00:23:40 +01:00
battery
bcma
block zram: Set default compressor to zstd 2024-11-30 02:02:54 +01:00
bluetooth Revert "Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO" 2024-11-24 00:23:50 +01:00
bts
bus
cdrom
char
clk
clocksource
connector
counter
cpufreq
cpuidle
crypto crypto: marvell/cesa - Disable hash algorithms 2024-11-30 02:33:27 +01:00
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
fingerprint
firewire
firmware
fpga
fsi
gnss
gpio
gpu drm/amdgpu: prevent NULL pointer dereference if ATIF is not supported 2024-11-30 02:33:24 +01:00
greybus
gud
hid HID: multitouch: Add quirk for HONOR MagicBook Art 14 touchpad 2024-11-30 02:33:27 +01:00
hsi
hv
hwmon Revert "hwmon: (adc128d818) Fix underflows seen when writing limit attributes" 2024-11-24 00:23:40 +01:00
hwspinlock Revert "hwspinlock: Introduce hwspin_lock_bust()" 2024-11-24 00:23:48 +01:00
hwtracing
i2c
i3c
ide
idle
ifconn
iio
infiniband
input Revert "Input: uinput - reject requests with unreasonable number of slots" 2024-11-24 00:23:39 +01:00
interconnect
iommu Revert "iommu: sun50i: clear bypass register" 2024-11-24 00:23:43 +01:00
ipack
irqchip irqchip/gic-v3: Force propagation of the active state with a read-back 2024-11-30 02:33:26 +01:00
isdn
kperfmon
kq/mesh
leds Revert "leds: spi-byte: Call of_node_put() on error path" 2024-11-24 00:23:43 +01:00
lightnvm
macintosh
mailbox
mcb
md dm-unstriped: cast an operand to sector_t to prevent potential uint32_t overflow 2024-11-30 02:33:24 +01:00
media media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_format 2024-11-30 02:33:26 +01:00
memory
memstick
message
mfd
misc drivers: samsung: scsc: Adapt scsc_wlbtd.c for Linux 5.10.229 2024-11-24 00:42:20 +01:00
mmc Revert "mmc: mmc_test: Fix NULL dereference on allocation failure" 2024-11-24 00:23:50 +01:00
most
mtd
muic
mux
net net: phy: ti: take into account all possible interrupt sources 2024-11-30 02:33:27 +01:00
nfc
ntb
nubus
nvdimm
nvme Revert "nvme/pci: Add APST quirk for Lenovo N60z laptop" 2024-11-24 00:23:54 +01:00
nvmem
of
opp
oprofile
parisc
parport
pci Revert "PCI: keystone: Add workaround for Errata #i2037 (AM65x SR 1.0)" 2024-11-24 00:23:42 +01:00
pcmcia Revert "pcmcia: Use resource_size function on resource object" 2024-11-24 00:23:42 +01:00
perf
phy
pinctrl Revert "pinctrl: rockchip: correct RK3328 iomux width flag for GPIO2-B pins" 2024-11-24 00:23:50 +01:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm pwm: imx-tpm: Use correct MODULO value for EPWM mode 2024-11-30 02:33:24 +01:00
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
samsung
sbus
scsi scsi: sd_zbc: Use kvzalloc() to allocate REPORT ZONES buffer 2024-11-30 02:33:23 +01:00
sensorhub
sensors
sfi
sh
siox
slimbus
soc
soundwire Revert "soundwire: stream: fix programming slave ports for non-continous port maps" 2024-11-24 00:23:49 +01:00
spi spi: Fix deadlock when adding SPI controllers on SPI buses 2024-11-30 02:33:25 +01:00
spmi
spu_verify
ssb
staging
sti
target
tc
tee
thermal
thunderbolt
tty
uh
uio
usb USB: serial: option: add Quectel RG650V 2024-11-30 02:33:26 +01:00
vdpa vDPA/ifcvf: Fix pci_read_config_byte() return code handling 2024-11-30 02:33:27 +01:00
vfio
vhost
vibrator
video
virt
virtio
vision
vision3
visorbus
vlynq
vme
w1
watchdog watchdog: s3c2410_wdt: Assign s3c_wdt[] until probe complete 2024-11-30 02:18:58 +01:00
xen
zorro
Kconfig
Kconfig.variant1
kernelsu
Makefile
Makefile.variant1