Use the correct Context for /proc/[pid]/maps.

PiperOrigin-RevId: 202180487
Change-Id: I95cce41a4842ab731a4821b387b32008bfbdcb08
This commit is contained in:
Jamie Liu
2018-06-26 13:09:50 -07:00
committed by Shentubot
parent 5f7f78c1d7
commit ea10949a00
+1 -1
View File
@@ -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
}