mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-11 17:00:22 +00:00
resolve a code scanning issue
This commit is contained in:
@@ -119,7 +119,7 @@ IbQp::IbQp(ibv_context* ctx, ibv_pd* pd, int port, int maxCqSize, int maxCqPollN
|
||||
}
|
||||
this->qp = _qp;
|
||||
this->wrs = std::make_unique<ibv_send_wr[]>(maxWrPerSend_);
|
||||
this->sges = std::make_unique<ibv_sge[]>(maxWrPerSend_ * maxNumSgesPerWr_);
|
||||
this->sges = std::make_unique<ibv_sge[]>((size_t)maxWrPerSend_ * maxNumSgesPerWr_);
|
||||
this->wcs = std::make_unique<ibv_wc[]>(maxCqPollNum_);
|
||||
numStagedWrs_ = 0;
|
||||
numStagedSges_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user