summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-06 02:08:42 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-06 02:08:42 +0000
commit1070297816ef242d77cffe161bfea993c97f84a7 (patch)
treecab5f109a863599188808848ab257645c4d5d8d2 /pkg/sentry
parent30a4bc710d68c111bd51ef6b6431eba2591a58b7 (diff)
parenta1df7f2ed1be5cb170218c3e127a9b5f51a314fd (diff)
Merge release-20200928.0-49-ga1df7f2ed (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/kernel/kcov.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/kernel/kcov.go b/pkg/sentry/kernel/kcov.go
index 90ceb5ef5..060c056df 100644
--- a/pkg/sentry/kernel/kcov.go
+++ b/pkg/sentry/kernel/kcov.go
@@ -215,9 +215,7 @@ func (kcov *Kcov) Clear() {
func (kcov *Kcov) clearLocked() {
kcov.mode = linux.KCOV_MODE_INIT
kcov.owningTask = nil
- if kcov.mappable != nil {
- kcov.mappable = nil
- }
+ kcov.mappable = nil
}
// OnTaskExit is called when the owning task exits. It is similar to