IB/mlx4: use kvmalloc_array to allocate wrid
authorLi Dongyang <dongyang.li@anu.edu.au>
Wed, 16 Aug 2017 13:31:23 +0000 (23:31 +1000)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 20:48:35 +0000 (16:48 -0400)
commite9105cdefbf64cd7aea300f934c92051e7cb7cff
treee7a3a7f7632dd612b27848607258acfe32eeacd5
parentb588300801f3502a7de5ca897af68019fbb3bc79
IB/mlx4: use kvmalloc_array to allocate wrid

We could use kvmalloc_array instead of the
kmalloc and __vmalloc combination.
After this we don't need to include linux/vmalloc.h

Signed-off-by: Li Dongyang <dongyang.li@anu.edu.au>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mlx4/srq.c