diff options
author | Michael Pratt <mpratt@google.com> | 2018-05-11 12:23:25 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-11 12:24:15 -0700 |
commit | 8deabbaae1fc45b042d551891080deef866dc0f8 (patch) | |
tree | 23aff1527fcb4f352a639159b693264d1ddd0c4b /pkg/sentry/kernel/task_usermem.go | |
parent | 12c161f27865d0e389cd593c669bd740d7f24692 (diff) |
Remove error return from AddressSpace.Release()
PiperOrigin-RevId: 196291289
Change-Id: Ie3487be029850b0b410b82416750853a6c4a2b00
Diffstat (limited to 'pkg/sentry/kernel/task_usermem.go')
-rw-r--r-- | pkg/sentry/kernel/task_usermem.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/kernel/task_usermem.go b/pkg/sentry/kernel/task_usermem.go index 7a62ab674..54964dd0d 100644 --- a/pkg/sentry/kernel/task_usermem.go +++ b/pkg/sentry/kernel/task_usermem.go @@ -39,9 +39,7 @@ func (t *Task) Activate() { // Deactivate relinquishes the task's active address space. func (t *Task) Deactivate() { if mm := t.MemoryManager(); mm != nil { - if err := mm.Deactivate(); err != nil { - panic("unable to deactivate mm: " + err.Error()) - } + mm.Deactivate() } } |