Skip to content

Commit

Permalink
fix Implicit memory aliasing in for loop
Browse files Browse the repository at this point in the history
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
  • Loading branch information
ningmingxiao committed Dec 6, 2021
1 parent 2b95ef0 commit 182c3af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rdma.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (p *rdmaController) Create(path string, resources *specs.LinuxResources) er

for device, limit := range resources.Rdma {
if device != "" && (limit.HcaHandles != nil || limit.HcaObjects != nil) {
limit := limit
return retryingWriteFile(
filepath.Join(p.Path(path), "rdma.max"),
[]byte(createCmdString(device, &limit)),
Expand Down

0 comments on commit 182c3af

Please sign in to comment.