Specify the size of CQE when copying CQE, and add the check of CQE size of user space. Wenpeng Liang (2): RDMA/hns: Fix the size setting error when copying CQE in clean_cq() RDMA/hns: Add the check of the CQE size of the user space drivers/infiniband/hw/hns/hns_roce_cq.c | 31 +++++++++++++++------- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 2 files changed, 23 insertions(+), 10 deletions(-) -- 2.33.0