diff options
| author | Lai Jiangshan <[email protected]> | 2009-07-06 16:10:23 +0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-07-10 12:14:07 +0200 |
| commit | a35780005eb256eb5ec83ffcc802967295887a45 (patch) | |
| tree | 187244378069f3dd02b23e706d10a3054837f3ba /include/linux/stacktrace.h | |
| parent | d8ea37d5de58d35a39d0b4e7d209751aaa1b8174 (diff) | |
tracing/workqueues: Add refcnt to struct cpu_workqueue_stats
The stat entries can be freed when the stat file is being read.
The worse is, the ptr can be freed immediately after it's returned
from workqueue_stat_start/next().
Add a refcnt to struct cpu_workqueue_stats to avoid use-after-free.
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Li Zefan <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions