From ea10949a0036cdef95a1397ccad8fcc138ce3c0d Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Tue, 26 Jun 2018 13:09:02 -0700 Subject: Use the correct Context for /proc/[pid]/maps. PiperOrigin-RevId: 202180487 Change-Id: I95cce41a4842ab731a4821b387b32008bfbdcb08 --- pkg/sentry/fs/proc/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry') diff --git a/pkg/sentry/fs/proc/task.go b/pkg/sentry/fs/proc/task.go index e2d2ce3ba..efc635946 100644 --- a/pkg/sentry/fs/proc/task.go +++ b/pkg/sentry/fs/proc/task.go @@ -306,7 +306,7 @@ func (md *mapsData) NeedsUpdate(generation int64) bool { // ReadSeqFileData implements seqfile.SeqSource.ReadSeqFileData. func (md *mapsData) ReadSeqFileData(ctx context.Context, h seqfile.SeqHandle) ([]seqfile.SeqData, int64) { if mm := md.mm(); mm != nil { - return mm.ReadSeqFileData(md.t.AsyncContext(), h) + return mm.ReadSeqFileData(ctx, h) } return []seqfile.SeqData{}, 0 } -- cgit v1.2.3