staging: r8188eu: Use kmemdup() to replace kmalloc + memcpy
authorKai Song <songkai01@inspur.com>
Sun, 3 Oct 2021 07:28:41 +0000 (15:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 10:33:34 +0000 (12:33 +0200)
commit9ffc67da4bb930ac891ba58934faac9fc02229fb
treefae9c5538e6c164f05937e1ff87b45c46304f055
parent4bea8519aa2575bbf7d6593cfd3c9e838a3e4f7c
staging: r8188eu: Use kmemdup() to replace kmalloc + memcpy

fix memdup.cocci warning:
drivers/staging/r8188eu/os_dep/ioctl_linux.c:4452:33-40: WARNING opportunity for kmemdup

Generated by: scripts/coccinelle/api/memdup.cocci

Signed-off-by: Kai Song <songkai01@inspur.com>
Link: https://lore.kernel.org/r/20211003072841.215903-1-songkai01@inspur.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c