Re: [PATCH] staging: r8188eu: Use memdup_user instead of kmalloc/copy_from_user

From: Greg KH
Date: Fri Oct 22 2021 - 05:07:15 EST


On Fri, Oct 22, 2021 at 10:55:55AM +0800, Kai Song wrote:
> Use memdup_user helper instead of open-coding to simplify
> the code.
>
> Signed-off-by: Kai Song <songkai01@xxxxxxxxxx>
> ---
> drivers/staging/r8188eu/os_dep/ioctl_linux.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)

Someone sent this just before you did, sorry:
https://lore.kernel.org/r/20211021122015.6974-1-wanjiabing@xxxxxxxx