aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMark Bloch <markb@mellanox.com>2016-05-06 15:45:27 -0400
committerDoug Ledford <dledford@redhat.com>2016-05-13 19:40:02 -0400
commit0f377d86252d11bfea941852785e3094b93601a7 (patch)
tree8d47da8aede94ea4999246c7f65a304e0c94d0b4 /drivers/infiniband
parent2fa2d4fb1166d1ef35f0aacac6165d53ab1b89c7 (diff)
IB/SA: Use correct free function
Fixes a direct call to kfree_skb when nlmsg_free should be used. Fixes: 2ca546b92a02 ('IB/sa: Route SA pathrecord query through netlink') Signed-off-by: Mark Bloch <markb@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/sa_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c
index 1e7c652fa8a5..3ebd108bcc5f 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -536,7 +536,7 @@ static int ib_nl_send_msg(struct ib_sa_query *query, gfp_t gfp_mask)
536 data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS, 536 data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS,
537 RDMA_NL_LS_OP_RESOLVE, NLM_F_REQUEST); 537 RDMA_NL_LS_OP_RESOLVE, NLM_F_REQUEST);
538 if (!data) { 538 if (!data) {
539 kfree_skb(skb); 539 nlmsg_free(skb);
540 return -EMSGSIZE; 540 return -EMSGSIZE;
541 } 541 }
542 542