From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Reuse recently introduced private_data_len to get IBTA REJ message private data size. Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx> 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 23c782e3d49a..a0dd17f90861 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2648,7 +2648,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: -- 2.20.1