diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2014-11-20 03:13:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 14:58:18 -0500 |
commit | 479163f4608214d18bc3266ab6e4b578897a3052 (patch) | |
tree | cf8433299f46dc9118a293f47fa4aa16db554fac /drivers/infiniband/hw/mlx5/qp.c | |
parent | c92d418f97aa2a35591601dc0b90cfc5fa8c603c (diff) |
mlx5: don't duplicate kvfree()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/qp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index e261a53f9a02..0e2ef9fe0e29 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c | |||
@@ -647,7 +647,7 @@ err_unmap: | |||
647 | mlx5_ib_db_unmap_user(context, &qp->db); | 647 | mlx5_ib_db_unmap_user(context, &qp->db); |
648 | 648 | ||
649 | err_free: | 649 | err_free: |
650 | mlx5_vfree(*in); | 650 | kvfree(*in); |
651 | 651 | ||
652 | err_umem: | 652 | err_umem: |
653 | if (qp->umem) | 653 | if (qp->umem) |
@@ -761,7 +761,7 @@ err_wrid: | |||
761 | kfree(qp->rq.wrid); | 761 | kfree(qp->rq.wrid); |
762 | 762 | ||
763 | err_free: | 763 | err_free: |
764 | mlx5_vfree(*in); | 764 | kvfree(*in); |
765 | 765 | ||
766 | err_buf: | 766 | err_buf: |
767 | mlx5_buf_free(dev->mdev, &qp->buf); | 767 | mlx5_buf_free(dev->mdev, &qp->buf); |
@@ -971,7 +971,7 @@ static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd, | |||
971 | goto err_create; | 971 | goto err_create; |
972 | } | 972 | } |
973 | 973 | ||
974 | mlx5_vfree(in); | 974 | kvfree(in); |
975 | /* Hardware wants QPN written in big-endian order (after | 975 | /* Hardware wants QPN written in big-endian order (after |
976 | * shifting) for send doorbell. Precompute this value to save | 976 | * shifting) for send doorbell. Precompute this value to save |
977 | * a little bit when posting sends. | 977 | * a little bit when posting sends. |
@@ -988,7 +988,7 @@ err_create: | |||
988 | else if (qp->create_type == MLX5_QP_KERNEL) | 988 | else if (qp->create_type == MLX5_QP_KERNEL) |
989 | destroy_qp_kernel(dev, qp); | 989 | destroy_qp_kernel(dev, qp); |
990 | 990 | ||
991 | mlx5_vfree(in); | 991 | kvfree(in); |
992 | return err; | 992 | return err; |
993 | } | 993 | } |
994 | 994 | ||