summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/auth
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/auth')
-rw-r--r--pkg/sentry/kernel/auth/auth_state_autogen.go3
-rw-r--r--pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/pkg/sentry/kernel/auth/auth_state_autogen.go b/pkg/sentry/kernel/auth/auth_state_autogen.go
index 5a7f55933..dea316420 100644
--- a/pkg/sentry/kernel/auth/auth_state_autogen.go
+++ b/pkg/sentry/kernel/auth/auth_state_autogen.go
@@ -141,7 +141,8 @@ func (s *idMapSet) beforeSave() {}
// +checklocksignore
func (s *idMapSet) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
- var rootValue *idMapSegmentDataSlices = s.saveRoot()
+ var rootValue *idMapSegmentDataSlices
+ rootValue = s.saveRoot()
stateSinkObject.SaveValue(0, rootValue)
}
diff --git a/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go b/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go
index 61f7e4ce9..28674a087 100644
--- a/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go
+++ b/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go
@@ -21,7 +21,8 @@ func (p *AtomicPtrCredentials) beforeSave() {}
// +checklocksignore
func (p *AtomicPtrCredentials) StateSave(stateSinkObject state.Sink) {
p.beforeSave()
- var ptrValue *Credentials = p.savePtr()
+ var ptrValue *Credentials
+ ptrValue = p.savePtr()
stateSinkObject.SaveValue(0, ptrValue)
}