diff --git a/src/uct/ib/rc/accel/rc_mlx5_common.h b/src/uct/ib/rc/accel/rc_mlx5_common.h index 3856b6e07df..e41cd9667e3 100644 --- a/src/uct/ib/rc/accel/rc_mlx5_common.h +++ b/src/uct/ib/rc/accel/rc_mlx5_common.h @@ -205,7 +205,7 @@ uct_rc_mlx5_iface_common_poll_rx(uct_rc_mlx5_iface_common_t *mlx5_common_iface, if (status != UCS_OK) { udesc = (char*)desc + rc_iface->super.config.rx_headroom_offset; uct_recv_desc(udesc) = &rc_iface->super.release_desc; - seg->srq.desc = NULL; + mlx5_common_iface->rx.desc[wqe_ctr] = NULL; } if (wqe_ctr == ((mlx5_common_iface->rx.srq.free_idx + 1) & mlx5_common_iface->rx.srq.mask)) { ++mlx5_common_iface->rx.srq.free_idx;