Merge "sched/walt: Fix use after free in trace_sched_update_task_ravg()"
This commit is contained in:
commit
ea40a6c521
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -2881,11 +2881,15 @@ void update_task_ravg(struct task_struct *p, struct rq *rq, int event,
|
|||
update_task_burst(p, rq, event, runtime);
|
||||
update_cpu_busy_time(p, rq, event, wallclock, irqtime);
|
||||
update_task_pred_demand(rq, p, event);
|
||||
done:
|
||||
|
||||
if (exiting_task(p))
|
||||
goto done;
|
||||
|
||||
trace_sched_update_task_ravg(p, rq, event, wallclock, irqtime,
|
||||
rq->cc.cycles, rq->cc.time,
|
||||
p->grp ? &rq->grp_time : NULL);
|
||||
|
||||
done:
|
||||
p->ravg.mark_start = wallclock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue