Re: [PATCH v6] staging: rtl8723bs: use kmemdup() in rtw_cfg80211_set_wpa_ie
From: Dan Carpenter
Date: Thu Mar 05 2026 - 05:39:33 EST
On Thu, Mar 05, 2026 at 11:23:18AM +0100, Alexandru Hossu wrote:
> Replace open-coded kzalloc()+memcpy() with kmemdup() to simplify the code.
>
> Signed-off-by: Alexandru Hossu <hossu.alexandru@xxxxxxxxx>
> ---
> v6:
> - Rebase onto staging-next.
> - Limit changes to ioctl_cfg80211.c since sdio_ops.c is already fixed there.
> - Place version notes below the --- line (canonical patch format).
>
Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
regards,
dan carpenter