diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-08-12 08:44:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-12 08:44:47 +0000 |
commit | 5bd8f886db24151734e03497661e5521d1dfcc48 (patch) | |
tree | db4948a593ba768c6b14796aa715ffd84473d0a2 /pkg/sentry/mm/mm_state_autogen.go | |
parent | 7e3845c246594cf53f846a6b3adf0b601368dd52 (diff) | |
parent | 3416a3db77bf80cc1100b7d206fe0b68d424d7c9 (diff) |
Merge release-20210726.0-57-g3416a3db7 (automated)
Diffstat (limited to 'pkg/sentry/mm/mm_state_autogen.go')
-rw-r--r-- | pkg/sentry/mm/mm_state_autogen.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkg/sentry/mm/mm_state_autogen.go b/pkg/sentry/mm/mm_state_autogen.go index c4cdf8bd2..cf5992fe1 100644 --- a/pkg/sentry/mm/mm_state_autogen.go +++ b/pkg/sentry/mm/mm_state_autogen.go @@ -162,7 +162,8 @@ func (s *fileRefcountSet) beforeSave() {} // +checklocksignore func (s *fileRefcountSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() - var rootValue *fileRefcountSegmentDataSlices = s.saveRoot() + var rootValue *fileRefcountSegmentDataSlices + rootValue = s.saveRoot() stateSinkObject.SaveValue(0, rootValue) } @@ -426,7 +427,8 @@ func (vma *vma) beforeSave() {} // +checklocksignore func (vma *vma) StateSave(stateSinkObject state.Sink) { vma.beforeSave() - var realPermsValue int = vma.saveRealPerms() + var realPermsValue int + realPermsValue = vma.saveRealPerms() stateSinkObject.SaveValue(2, realPermsValue) stateSinkObject.Save(0, &vma.mappable) stateSinkObject.Save(1, &vma.off) @@ -533,7 +535,8 @@ func (s *pmaSet) beforeSave() {} // +checklocksignore func (s *pmaSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() - var rootValue *pmaSegmentDataSlices = s.saveRoot() + var rootValue *pmaSegmentDataSlices + rootValue = s.saveRoot() stateSinkObject.SaveValue(0, rootValue) } @@ -694,7 +697,8 @@ func (s *vmaSet) beforeSave() {} // +checklocksignore func (s *vmaSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() - var rootValue *vmaSegmentDataSlices = s.saveRoot() + var rootValue *vmaSegmentDataSlices + rootValue = s.saveRoot() stateSinkObject.SaveValue(0, rootValue) } |