RDMA/srpt: Use kmem_cache_free() instead of kfree()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Dec 2018 10:30:30 +0000 (10:30 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 22 Dec 2018 23:07:47 +0000 (16:07 -0700)
commitf617e5ffe04fd46010b618c9eeadaa04588704c9
tree0ef9855cfedb778a009701e3fa234c00a451a737
parent58f7c0bfb4e111006ba376df7ab266a6d42d64ba
RDMA/srpt: Use kmem_cache_free() instead of kfree()

memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().

Fixes: 5dabcd0456d7 ("RDMA/srpt: Add support for immediate data")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/srpt/ib_srpt.c