IB/rxe: replace kvfree with vfree
authorZhu Yanjun <yanjun.zhu@oracle.com>
Sun, 30 Sep 2018 05:57:42 +0000 (01:57 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 1 Oct 2018 01:20:38 +0000 (19:20 -0600)
commit721ad7e643f7002efa398838693f90284ea216d1
treec55834a8849c098f697e85cb28b16b0579c64507
parent65f07f5a09dacf3b60619f196f096ea3671a5eda
IB/rxe: replace kvfree with vfree

The buf is allocated by vmalloc_user in the function rxe_queue_init.
So it is better to free it by vfree.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_cq.c
drivers/infiniband/sw/rxe/rxe_qp.c