On Wed, May 04, 2016 at 08:36:05AM +0300, Leon Romanovsky wrote: > From: Mark Bloch <markb@xxxxxxxxxxxx> > > 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@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leon@xxxxxxxxxx> Reviewed-by: Ira Weiny <ira.weiny@xxxxxxxxx> > --- > drivers/infiniband/core/sa_query.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c > index 24c2aac..5050c61 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) > data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS, > RDMA_NL_LS_OP_RESOLVE, NLM_F_REQUEST); > if (!data) { > - kfree_skb(skb); > + nlmsg_free(skb); > return -EMSGSIZE; > } > > -- > 2.1.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html