diff options
author | Yuval Shaia | 2018-04-30 22:02:22 +0200 |
---|---|---|
committer | Marcel Apfelbaum | 2018-05-03 19:52:29 +0200 |
commit | 6c080b9ea6efbc277cfa7afc7d4f9d8cc3a9020b (patch) | |
tree | 5d317a9f6486691f47f5f3ba50c7b0a8f03cf785 /hw/rdma/rdma_rm_defs.h | |
parent | hw/rdma: Fix possible out of bounds access to regs array (diff) | |
download | qemu-6c080b9ea6efbc277cfa7afc7d4f9d8cc3a9020b.tar.gz qemu-6c080b9ea6efbc277cfa7afc7d4f9d8cc3a9020b.tar.xz qemu-6c080b9ea6efbc277cfa7afc7d4f9d8cc3a9020b.zip |
hw/rdma: Delete duplicate definition of MAX_RM_TBL_NAME
By a mistake this constant was defined twice - remove the duplication.
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20180430200223.4119-7-marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/rdma/rdma_rm_defs.h')
-rw-r--r-- | hw/rdma/rdma_rm_defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rdma/rdma_rm_defs.h b/hw/rdma/rdma_rm_defs.h index 4d22a20e4c..226011176d 100644 --- a/hw/rdma/rdma_rm_defs.h +++ b/hw/rdma/rdma_rm_defs.h @@ -34,9 +34,9 @@ #define MAX_QP_INIT_RD_ATOM 16 #define MAX_AH 64 -#define MAX_RMRESTBL_NAME_SZ 16 +#define MAX_RM_TBL_NAME 16 typedef struct RdmaRmResTbl { - char name[MAX_RMRESTBL_NAME_SZ]; + char name[MAX_RM_TBL_NAME]; QemuMutex lock; unsigned long *bitmap; size_t tbl_sz; |