]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: rtl8723bs: initialize le_tmp64 in rtw_BIP_verify()
authorLin YuChen <starpt.official@gmail.com>
Fri, 20 Mar 2026 17:25:02 +0000 (01:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:32:15 +0000 (13:32 +0200)
commitef74ce5f0bc0e53ce702d8a794f3957884a26efc
tree98ae9455cfae8e8c7002d67b53851269337d210a
parentaaaaec39ddbcd06770dca7f1adebc3b1242ebe7b
staging: rtl8723bs: initialize le_tmp64 in rtw_BIP_verify()

commit 8c964b82a4e97ec7f25e17b803ee196009b38a57 upstream.

Initialize le_tmp64 to zero in rtw_BIP_verify() to prevent using
uninitialized data.

Smatch warns that only 6 bytes are copied to this 8-byte (u64)
variable, leaving the last two bytes uninitialized:

drivers/staging/rtl8723bs/core/rtw_security.c:1308 rtw_BIP_verify()
warn: not copying enough bytes for '&le_tmp64' (8 vs 6 bytes)

Initializing the variable at the start of the function fixes this
warning and ensures predictable behavior.

Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
Cc: stable <stable@kernel.org>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-staging/abvwIQh0CHTp4wNJ@stanley.mountain/
Signed-off-by: Lin YuChen <starpt.official@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260320172502.167332-1-starpt.official@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_security.c