qemu-patch-raspberry4/hw/rdma
Li Qiang a5fe209d71 hw: rdma: fix an off-by-one issue
In rdma_rm_get_backend_gid_index(), the 'sgid_idx' is used
to index the array 'dev_res->port.gid_tbl' which size is
MAX_PORT_GIDS. Current the 'sgid_idx' may be MAX_PORT_GIDS
thus cause an off-by-one issue.

Spotted by Coverity: CID 1398594

Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20190103131251.49271-1-liq3ea@163.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
2019-01-19 10:57:48 +02:00
..
vmw hw/pvrdma: Make function pvrdma_qp_send/recv return void. 2019-01-19 10:53:16 +02:00
Makefile.objs config: split PVRDMA from RDMA 2018-08-18 18:01:34 +03:00
rdma_backend.c hw/rdma: Verify that ptr is not NULL before freeing 2019-01-19 10:54:37 +02:00
rdma_backend.h hw/pvrdma: Post CQE when receive invalid gid index 2019-01-19 10:49:40 +02:00
rdma_backend_defs.h hw/rdma: Delete unused struct member 2019-01-19 10:45:23 +02:00
rdma_rm.c hw: rdma: fix an off-by-one issue 2019-01-19 10:57:48 +02:00
rdma_rm.h hw/rdma: Remove unneeded code that handles more that one port 2018-12-22 11:09:56 +02:00
rdma_rm_defs.h hw/rdma: Remove unneeded code that handles more that one port 2018-12-22 11:09:56 +02:00
rdma_utils.c Clean up includes 2018-12-20 10:29:08 +01:00
rdma_utils.h hw/rdma: Initialize node_guid from vmxnet3 mac address 2018-12-22 11:09:56 +02:00
trace-events hw/rdma: Implementation of generic rdma device layers 2018-02-19 13:03:24 +02:00