staging: rdma: Replace kmalloc with kmalloc_array
authorCristina Moraru <cristina.moraru09@gmail.com>
Wed, 21 Oct 2015 17:00:51 +0000 (20:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:00:15 +0000 (19:00 -0700)
commitfb1dc957054c6a9823b20b2672f5193e47bc5f6d
treedcbfd82afa781876e92136f13be20dc1dd03c7d2
parentdf5ddcc97e694bfa5dafa838c26e5b974c706929
staging: rdma: 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/rdma/amso1100/c2_provider.c
drivers/staging/rdma/ipath/ipath_verbs.c