staging: r8188eu: Use zeroing allocator in wpa_set_encryption()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 12 Oct 2021 02:46:24 +0000 (21:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 12:28:48 +0000 (14:28 +0200)
commitc82462f124df06a0a34793f1a1dafe5c146a2a6f
treee32febda410e759be4dd82b45da3a3da11b2587c
parent05d744fc28b680ef6c0f8e6517c58cc27efcdef1
staging: r8188eu: Use zeroing allocator in wpa_set_encryption()

Use zeroing allocator rather than allocator followed by memset with 0.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20211012024624.GA1062447@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c