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, 22 Jun 2022 12:21:59 +0000 (14:21 +0200)
commit2595e803130bcd6ecda6451282916c7568c166b2
tree6e833e8c9fd40226b5a5fa3b7fca3071c856041d
parentd56bc9e8760ac1b0366678c97d1e92ac4fec79c4
staging: r8188eu: Use zeroing allocator in wpa_set_encryption()

[ Upstream commit c82462f124df06a0a34793f1a1dafe5c146a2a6f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c