summaryrefslogtreecommitdiffhomepage
path: root/pkg/bits/uint64_arch_amd64.go
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-10-01 13:54:57 -0700
committerShentubot <shentubot@google.com>2018-10-01 13:56:07 -0700
commit07aa040842cfd31a0c6e851900173d02dd01c7fe (patch)
tree142b8d794bcbc17ba418ab3275d590e00059a98b /pkg/bits/uint64_arch_amd64.go
parenta2ad8fef136b31989bfcd2f40003f6113aebaf1d (diff)
Fix possible panic in control.Processes.
There was a race where we checked task.Parent() != nil, and then later called task.Parent() again, assuming that it is not nil. If the task is exiting, the parent may have been set to nil in between the two calls, causing a panic. This CL changes the code to only call task.Parent() once. PiperOrigin-RevId: 215274456 Change-Id: Ib5a537312c917773265ec72016014f7bc59a5f59
Diffstat (limited to 'pkg/bits/uint64_arch_amd64.go')
0 files changed, 0 insertions, 0 deletions