OSDN Git Service

staging: rdma: use kmalloc_array instead of kmalloc
authorGeliang Tang <geliangtang@163.com>
Sun, 8 Nov 2015 14:17:52 +0000 (22:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Nov 2015 00:55:37 +0000 (16:55 -0800)
commit8b3e676b0cb9444f8de18b54dee1ccb51f152460
tree79ffb17fa090c5b670ba8785f53ad7a0712805d6
parentb629a6f63d5d7a8aab1b57223e4353427824c6d7
staging: rdma: use kmalloc_array instead of kmalloc

Use kmalloc_array instead of kmalloc to allocate memory for an array.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/amso1100/c2.c
drivers/staging/rdma/ipath/ipath_file_ops.c