Skip to content

Commit f719f96

Browse files
authored
Merge pull request #214 from ningmingxiao/dev1
fix Implicit memory aliasing in for loop
2 parents 2b95ef0 + 182c3af commit f719f96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rdma.go

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func (p *rdmaController) Create(path string, resources *specs.LinuxResources) er
6767

6868
for device, limit := range resources.Rdma {
6969
if device != "" && (limit.HcaHandles != nil || limit.HcaObjects != nil) {
70+
limit := limit
7071
return retryingWriteFile(
7172
filepath.Join(p.Path(path), "rdma.max"),
7273
[]byte(createCmdString(device, &limit)),

0 commit comments

Comments
 (0)