Skip to content

Commit

Permalink
Merge pull request #214 from ningmingxiao/dev1
Browse files Browse the repository at this point in the history
fix Implicit memory aliasing in for loop
  • Loading branch information
dmcgowan authored Dec 14, 2021
2 parents 2b95ef0 + 182c3af commit f719f96
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 f719f96

Please sign in to comment.