summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/task.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-03 16:45:42 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-03 16:45:42 +0000
commit3491ec5ee80b3ed2037a099ccbdc8b482816fc47 (patch)
tree9806849f31ba1882c154f1154e0bfb2b35c6f572 /pkg/sentry/kernel/task.go
parent0c7055c40f978bd8f0ca5aa362948ad9807efe54 (diff)
parente0aaf40e397072eba7944065cf2a820318cb266b (diff)
Merge release-20200921.0-107-ge0aaf40e3 (automated)
Diffstat (limited to 'pkg/sentry/kernel/task.go')
-rw-r--r--pkg/sentry/kernel/task.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go
index a436610c9..f796e0fa3 100644
--- a/pkg/sentry/kernel/task.go
+++ b/pkg/sentry/kernel/task.go
@@ -917,7 +917,7 @@ func (t *Task) SetKcov(k *Kcov) {
// ResetKcov clears the kcov instance associated with t.
func (t *Task) ResetKcov() {
if t.kcov != nil {
- t.kcov.Reset()
+ t.kcov.OnTaskExit()
t.kcov = nil
}
}