staging: octeon-usb: Replace kmalloc with kmalloc_array
authorCristina Moraru <cristina.moraru09@gmail.com>
Wed, 21 Oct 2015 17:00:50 +0000 (20:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:28:52 +0000 (19:28 -0700)
commit73eee567cbdc3e2f70843a1090786ceb0391061e
treeea04d265c443b255aa21b54ca273be8ffa14cba1
parentffca44fb93e755e3af822966ddf0a5d041d8bd93
staging: octeon-usb: 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/octeon-usb/octeon-hcd.c