linux/drivers/staging
Colin Ian King 2698fab038 staging: rtl8192u: fix a dubious looking mask before a shift
[ Upstream commit c4283950a9 ]

Currently the masking of ret with 0xff and followed by a right shift
of 8 bits always leaves a zero result.  It appears the mask of 0xff
is incorrect and should be 0xff00, but I don't have the hardware to
test this. Fix this to mask the upper 8 bits before shifting.

[ Not tested ]

Addresses-Coverity: ("Operands don't affect result")
Fixes: 8fc8598e61 ("Staging: Added Realtek rtl8192u driver to staging")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200716154720.1710252-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-19 08:16:13 +02:00
..
android staging: android: ashmem: Fix lockdep warning for write operation 2020-08-11 15:33:34 +02:00
axis-fifo
board
clocking-wizard
comedi staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shift 2020-07-29 10:18:42 +02:00
emxx_udc
exfat
fbtft
fieldbus
fsl-dpaa2
fwserial
gasket staging: gasket: Fix mapping refcnt leak when register/store fails 2020-06-24 17:50:21 +02:00
gdm724x
goldfish
greybus staging: greybus: fix a missing-check bug in gb_lights_light_config() 2020-06-24 17:50:20 +02:00
gs_fpgaboot
iio
isdn
kpc2000
ks7010
media media: cedrus: Program output format during each run 2020-06-22 09:31:18 +02:00
most
mt7621-dma
mt7621-dts
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable authmode 2020-08-11 15:33:34 +02:00
rtl8192e
rtl8192u staging: rtl8192u: fix a dubious looking mask before a shift 2020-08-19 08:16:13 +02:00
rtl8712 staging: rtl8712: handle firmware load failure 2020-08-11 15:33:34 +02:00
rtl8723bs Staging: rtl8723bs: prevent buffer overflow in update_sta_support_rate() 2020-06-30 15:37:11 -04:00
rts5208
sm750fb staging: sm750fb: add missing case while setting FB_VISUAL 2020-06-24 17:50:24 +02:00
speakup
unisys
uwb
vc04_services staging: vchiq_arm: Add a matching unregister call 2020-08-19 08:16:09 +02:00
vme
vt6655
vt6656
wilc1000 staging: wilc1000: Increase the size of wid_list array 2020-06-24 17:50:23 +02:00
wlan-ng staging: wlan-ng: properly check endpoint types 2020-07-29 10:18:42 +02:00
wusbcore
Kconfig
Makefile