Re: [PATCH v2 1/2] staging: rtl8723bs: fix stainfo check in rtw_aes_decrypt
From: Dan Carpenter
Date: Thu Apr 16 2026 - 17:15:02 EST
On Thu, Apr 16, 2026 at 11:53:37PM +0400, Maksym Pikhotskyi wrote:
> The null-pointer-guard was incorrect, returning _FAIL on valid pointer.
> Invert the guard, so it returns _FAIL on invalid pointer.
>
> Fixes: e23ad1570028 ("staging: rtl8723bs: use guard clause for stainfo check")
> Signed-off-by: Maksym Pikhotskyi <mpikhotskyi@xxxxxxxxx>
> ---
Ugh. Crap. Thanks.
Reviewed-by: Dan Carpenter <error27@xxxxxxxxx>
regards,
dan carpenter