Skip to content

Commit 182c3af

Browse files
committed
fix Implicit memory aliasing in for loop
Signed-off-by: ningmingxiao <[email protected]>
1 parent 2b95ef0 commit 182c3af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rdma.go

Lines changed: 1 addition & 0 deletions
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)