IB/mlx5: Fix wrong use of kfree at bad flow in create_cq_user
authorBodong Wang <bodong@mellanox.com>
Wed, 29 Mar 2017 03:12:14 +0000 (06:12 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Apr 2017 16:26:05 +0000 (12:26 -0400)
commit44f2e99ecdb76cb91293dd822fbe3952b8db5345
treee941ee235fc0a9e06541e5f2bc9c89d809c8a503
parent00b7c2abb6a25437be472b9402feb90ab32798ae
IB/mlx5: Fix wrong use of kfree at bad flow in create_cq_user

The kfree was called to free cqb, while it should free *cqb.

Fixes: 1cbe6fc86ccf ("IB/mlx5: Add support for CQE compressing")
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/cq.c