Re: [PATCH] staging: rtl8723bs: replace kmalloc + memcpy with kmemdup in ioctl_cfg80211.c
From: Ethan Tidmore
Date: Sat Mar 14 2026 - 17:09:20 EST
On Sat Mar 14, 2026 at 4:11 AM CDT, Tomasz Unger wrote:
> Replace kmalloc() followed by memcpy() with kmemdup() which combines
> both operations into a single call, making the code cleaner and more
> readable. The zeroing done by kzalloc() is unnecessary here as the
> entire buffer is immediately overwritten by memcpy().
>
> Signed-off-by: Tomasz Unger <tomasz.unger@xxxxxxxx>
> ---
This doesn't apply to staging-next.
Thanks,
ET