On Thu, Jun 18, 2026 at 12:17:51PM +0800, Ruoyu Wang wrote:
> erdma_post_recv() returns ret after walking the receive work request list.
> If the caller passes an empty list, the loop is skipped and ret is not
> assigned.
>
> Initialize ret to 0 so an empty receive work request list returns success
> instead of stack data.
>
> Fixes: 155055771704 ("RDMA/erdma: Add verbs implementation")
> Signed-off-by: Ruoyu Wang <[email protected]>
> Reviewed-by: Cheng Xu <[email protected]>
> ---
> v2:
> - Split the erdma and mana_ib changes into separate patches.
> - Add a driver-specific Fixes tag.
>
> drivers/infiniband/hw/erdma/erdma_qp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Both patches applied to for-rc
Thanks,
Jason