diff options
| author | Ruoyu Wang <ruoyuw560@gmail.com> | 2026-06-18 12:17:51 +0800 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-07-02 14:16:44 -0300 |
| commit | 2815a277c53e9a84784d6410cd55a9da5b33068d (patch) | |
| tree | 0047ffaefbdaa9e2a599cc90352ed85ef86eb437 /Documentation/gpu/intel-display/git@git.tavy.me:linux.git | |
| parent | b9b0889071569d43623c260074e159cd8f26adb1 (diff) | |
RDMA/erdma: initialize ret for empty receive WR lists
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")
Link: https://patch.msgid.link/r/20260618041752.481193-1-ruoyuw560@gmail.com
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'Documentation/gpu/intel-display/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
