Re: [PATCH] staging: rtl8723bs: initialize le_tmp64 in rtw_BIP_verify()

From: Dan Carpenter

Date: Fri Mar 20 2026 - 04:29:22 EST


On Fri, Mar 20, 2026 at 01:03:12AM +0800, Lin YuChen wrote:
> 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.
>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Closes: https://lore.kernel.org/linux-staging/abvwIQh0CHTp4wNJ@stanley.mountain/
> Signed-off-by: Lin YuChen <starpt.official@xxxxxxxxx>
> ---

Add a Fixes tag? Otherwise, it looks good.

regards,
dan carpenter