staging: r8188eu: use kmemdup instead of kzalloc and memcpy
authorMichael Straube <straube.linux@gmail.com>
Fri, 7 Jan 2022 10:36:10 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:13:43 +0000 (16:13 +0100)
commit2441fa93a82b2a799de2e07f74acca07a7d7d49d
treed4c7cfec1e4b647212a0ef2c403ecc8340d2a2b4
parent2f8e84b2d1f841dd9b82d231463b7733112735b6
staging: r8188eu: use kmemdup instead of kzalloc and memcpy

Use kmemdup instead of kzalloc and memcpy in load_firmware().

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220107103620.15648-10-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
drivers/staging/r8188eu/include/rtl8188e_hal.h