Skip to content

Commit 3c4e8f5

Browse files
authored
Merge pull request moby#3938 from alexcb/lock-list-mu-before-accessing-actives
solver: lock before using actives
2 parents 13cca5a + 09325e7 commit 3c4e8f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

solver/jobs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ func (wp *withProvenance) WalkProvenance(ctx context.Context, f func(ProvenanceP
533533
if wp.j == nil {
534534
return nil
535535
}
536+
wp.j.list.mu.RLock()
537+
defer wp.j.list.mu.RUnlock()
536538
m := map[digest.Digest]struct{}{}
537539
return wp.j.walkProvenance(ctx, wp.e, f, m)
538540
}

0 commit comments

Comments
 (0)