aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2010-04-23 13:18:01 -0400
committerLinus Torvalds <[email protected]>2010-04-24 11:31:25 -0700
commit31f2b0ebc01fd332cb0997f7ce9f9cde29af9e20 (patch)
treefc9d4cb410052afcc56bb8442a2dbcb8950464a8 /tools/perf/util/trace-event-scripting.c
parent93b4a44f3ad69520d605aace3f3486b8eb754b96 (diff)
rmap: anon_vma_prepare() can leak anon_vma_chain
If find_mergeable_anon_vma() succeeds but another thread installs ->anon_vma before we take ptl, then allocated == NULL but avc should be freed. Change the code to check avc != NULL to detect this case. Also, a couple of whitespace changes to make the critical section more visible. Signed-off-by: Oleg Nesterov <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Pete Zaitcev <[email protected]> Cc: Borislav Petkov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions