An error occurred while fetching folder content.
staging: r8188eu: fix rtw_alloc_hwxmits error detection for now
Phillip Potter authored
[ Upstream commit 5b7419ae ]

In _rtw_init_xmit_priv, we use the res variable to store the error
return from the newly converted rtw_alloc_hwxmits function. Sadly, the
calling function interprets res using _SUCCESS and _FAIL still, meaning
we change the semantics of the variable, even in the success case.

This leads to the following on boot:
r8188eu 1-2:1.0: _rtw_init_xmit_priv failed

In the long term, we should reverse these semantics, but for now, this
fixes the driver. Also, inside rtw_alloc_hwxmits remove the if blocks,
as HWXMIT_ENTRY is always 4.

Fixes: f94b47c6

 ("staging: r8188eu: add check for kzalloc")
Signed-off-by: default avatarPhillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20220521204741.921-1-phil@philpotter.co.uk

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
d56bc9e8
Name Last commit Last update
..
accessibility speakup-dectlk: Restore pitch setting
acpi ACPI: property: Release subnode properties with data nodes
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn"
android binder: avoid potential data leakage when copying txn
ata ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
atm atm: eni: Add check for dma_map_single
auxdisplay auxdisplay: lcd2s: Use proper API to free the instance of charlcd object
base x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data
bcma Merge tag 'driver-core-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
block nbd: fix io hung while disconnecting device
bluetooth Bluetooth: hci_qca: Use del_timer_sync() before freeing
bus bus: ti-sysc: Fix warnings for unbind for serial
cdrom scsi: sr: cdrom: Move cdrom_read_cdda_bpc() into the sr driver
char random: credit cpu and bootloader seeds by default
clk clk: tegra: Add missing reset deassertion
clocksource clocksource/drivers/sp804: Avoid error on multiple instances
comedi comedi: vmk80xx: fix bulk and interrupt message timeouts
connector net/connector: Add const qualifier to cb_id
counter counter: 104-quad-8: Describe member 'lock' in 'quad8'
cpufreq cpufreq: mediatek: Unregister platform device on exit
cpuidle cpuidle: PSCI: Improve support for suspend-to-RAM for PSCI OSI mode
crypto crypto: sun8i-ss - handle zero sized sg
cxl cxl/regs: Fix size of CXL Capability Header Register
dax dax: make sure inodes are flushed before destroy cache
dca dca: Use PTR_ERR_OR_ZERO() to simplify code
devfreq
dio
dma-buf
dma
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio
gpu
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc