On 10/20/19 12:15 AM, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > Reuse recently introduced private_data_len to get IBTA REJ message > private data size. > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c > index daf811abf40a..e66366de11e9 100644 > --- a/drivers/infiniband/ulp/srpt/ib_srpt.c > +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c > @@ -2609,7 +2609,7 @@ static int srpt_cm_handler(struct ib_cm_id *cm_id, > case IB_CM_REJ_RECEIVED: > srpt_cm_rej_recv(ch, event->param.rej_rcvd.reason, > event->private_data, > - IB_CM_REJ_PRIVATE_DATA_SIZE); > + event->private_data_len); > break; > case IB_CM_RTU_RECEIVED: > case IB_CM_USER_ESTABLISHED: Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>