linux/drivers/infiniband/hw/mana
Ruoyu Wang 155fd5ce23 RDMA/mana_ib: initialize err for empty send WR lists
mana_ib_post_send() returns err after walking the send work request list.
If the caller passes an empty list, the loop is skipped and err is not
assigned.

Initialize err to 0 so an empty send work request list returns success
instead of stack data.

Fixes: c8017f5b48 ("RDMA/mana_ib: UD/GSI work requests")
Link: https://patch.msgid.link/r/20260618041752.481193-2-ruoyuw560@gmail.com
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2026-07-02 14:16:44 -03:00
..
ah.c RDMA/mana_ib: create/destroy AH 2025-02-04 08:27:03 -05:00
counters.c RDMA/mana_ib: add additional port counters 2025-07-13 04:24:11 -04:00
counters.h RDMA/mana_ib: add additional port counters 2025-07-13 04:24:11 -04:00
cq.c Linux 7.1-rc5 2026-05-25 13:48:00 -03:00
device.c RDMA/mana_ib: Support memory windows 2026-04-09 11:22:06 -03:00
Kconfig
main.c RDMA v7.2 merge window 2026-06-18 08:16:21 -07:00
Makefile RDMA/mana_ib: Add port statistics support 2025-02-06 04:11:01 -05:00
mana_ib.h net: mana: Create separate EQs for each vPort 2026-06-09 17:22:26 -07:00
mr.c RDMA/umem: Rename ib_umem_get() to ib_umem_get_va() 2026-05-29 20:19:57 -03:00
qp.c RDMA v7.2 merge window 2026-06-18 08:16:21 -07:00
shadow_queue.h RDMA/mana_ib: Use safer allocation function() 2025-03-08 13:34:17 -05:00
wq.c RDMA: Remove redundant = {} for udata req structs 2026-03-31 03:18:16 -04:00
wr.c RDMA/mana_ib: initialize err for empty send WR lists 2026-07-02 14:16:44 -03:00