]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60d9b28d08465fbae6a5689a54789a83b6345432
treee7a3a7f7632dd612b27848607258acfe32eeacd5
parent418bc1bee415fd5091c82ad3c513ba6d64f4ff24
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