From 182c3afa53b8cccce0611cca9dee46410c4f82f7 Mon Sep 17 00:00:00 2001 From: ningmingxiao Date: Mon, 6 Dec 2021 22:08:20 +0800 Subject: [PATCH] fix Implicit memory aliasing in for loop Signed-off-by: ningmingxiao --- rdma.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rdma.go b/rdma.go index b6f0d416..3b59b107 100644 --- a/rdma.go +++ b/rdma.go @@ -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)),