Files
linux/drivers
Colin Ian King 3cf023bcb6 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>
2023-05-16 08:46:42 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-16 08:45:34 +09:00
2023-05-15 12:46:28 +09:00
2017-09-09 17:39:41 +02:00
2023-05-16 08:46:23 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 08:28:33 +09:00
2023-05-16 08:19:24 +09:00
2023-05-15 16:59:11 +09:00