linux-stable/drivers/staging
Colin Ian King d548f0f566 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-21 09:48:09 +02:00
..
android staging: android: ashmem: Fix lockdep warning for write operation 2020-08-21 09:47:57 +02:00
board
ccree crypto: ccree - avoid implicit enum conversion 2019-12-01 09:13:31 +01:00
clocking-wizard
comedi staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shift 2020-07-29 07:42:57 +02:00
dgnc
emxx_udc
fbtft fbtft: Make sure string is NULL terminated 2019-12-31 12:37:47 +01:00
fsl-dpaa2
fsl-mc
fwserial
gdm724x
goldfish
greybus staging: greybus: fix a missing-check bug in gb_lights_light_config() 2020-06-25 15:41:50 +02:00
gs_fpgaboot
iio staging: iio: ad2s1210: Fix SPI reading 2020-05-27 16:43:10 +02:00
irda
ks7010
lustre
media
most staging: most: net: fix buffer overflow 2020-02-05 14:18:01 +00:00
mt29f_spinand
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
rtl8188eu staging: rtl8188eu: Add ASUS USB-N10 Nano B1 to device table 2020-04-02 16:34:34 +02:00
rtl8192e staging: rtl8192e: fix potential use after free 2019-12-05 15:38:08 +01:00
rtl8192u staging: rtl8192u: fix a dubious looking mask before a shift 2020-08-21 09:48:09 +02:00
rtl8712 staging: rtl8712: Fix IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK 2020-06-11 09:23:00 +02:00
rtl8723bs Staging: rtl8723bs: prevent buffer overflow in update_sta_support_rate() 2020-06-30 15:38:09 -04:00
rtlwifi staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx 2020-01-27 14:46:21 +01:00
rts5208
skein
sm750fb staging: sm750fb: add missing case while setting FB_VISUAL 2020-06-25 15:41:51 +02:00
speakup staging/speakup: fix get_word non-space look-ahead 2020-04-02 16:34:18 +02:00
typec
unisys
vboxvideo
vc04_services staging: bcm2835-camera: Abort probe if there is no camera 2020-01-27 14:46:07 +01:00
vme
vt6655
vt6656 staging: vt6656: Power save stop wake_up_count wrap around. 2020-05-02 17:24:37 +02:00
wilc1000
wlan-ng staging: wlan-ng: properly check endpoint types 2020-07-29 07:42:56 +02:00
xgifb
Kconfig
Makefile