staging: rtl8712: Replace kmalloc with kmalloc_array
authorCristina Moraru <cristina.moraru09@gmail.com>
Wed, 21 Oct 2015 17:00:49 +0000 (20:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:38:48 +0000 (19:38 -0700)
commitada40ba4e5b5f6a668a4d684e12a8b097fbafee3
tree03b18ec6ff03f5c964d6f9abe337579c521e3345
parent614a2910900084d93fe80611a3d14c62edc0ea10
staging: rtl8712: Replace kmalloc with kmalloc_array

Replace kmalloc with specialized function kmalloc_array
when the size is a multiplication of:
number_of_elements * size_of_element

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_mlme.c