diff options
| author | Rebecca Schultz Zavin <[email protected]> | 2013-12-13 14:24:01 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-12-14 08:55:38 -0800 |
| commit | 0e9c03a58ed599594780a69c988bd11e6459a752 (patch) | |
| tree | 0d20709366e4bbb2f6407fccdb6fc98824825045 /tools/perf/scripts/python | |
| parent | 12edf53db310345693fb7227c50e70a9b1fce434 (diff) | |
gpu: ion: Fix race between ion_import and ion_free
If preemted during ion_free after the refcount is updated but
before the handle can be removed from the rb_tree, import
might find that handle in the tree and try to reuse it
when execution returns to free, the handle will be cleaned
up leaving the caller of import with a corrupt handle.
This patch modifies the locking to protect agains this race.
Signed-off-by: Rebecca Schultz Zavin <[email protected]>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions