Skip to content

Commit 182c3af

Browse files
committed
fix Implicit memory aliasing in for loop
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
1 parent 2b95ef0 commit 182c3af

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)