]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita277ff68c31ae7ac7a8b6c2db6422b329fde8c51
treec55834a8849c098f697e85cb28b16b0579c64507
parent9e47f2df0e3303ca9c9176bff23ede91f34170a3
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: 5deaf88696f1 ("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