diff --git a/drivers/infiniband/hw/irdma/puda.c b/drivers/infiniband/hw/irdma/puda.c index 18057139817ddf810edb093ade5f5df6ed7cdf10..c0be6e37d425a3dcb5103a916360223e7b27e801 100644 --- a/drivers/infiniband/hw/irdma/puda.c +++ b/drivers/infiniband/hw/irdma/puda.c @@ -1420,8 +1420,7 @@ irdma_ieq_handle_partial(struct irdma_puda_rsrc *ieq, struct irdma_pfpdu *pfpdu, error: while (!list_empty(&pbufl)) { buf = (struct irdma_puda_buf *)(pbufl.prev); - list_del(&buf->list); - list_add(&buf->list, rxlist); + list_move(&buf->list, rxlist); } if (txbuf) irdma_puda_ret_bufpool(ieq, txbuf);