aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorKOSAKI Motohiro <[email protected]>2012-10-08 16:29:19 -0700
committerLinus Torvalds <[email protected]>2012-10-09 16:22:22 +0900
commit63f74ca21f1fad36d075e063f06dcc6d39fe86b2 (patch)
tree44ba87965b18f77fbb464d891ef07b2eca8304d4 /tools/perf/scripts/python/event_analyzing_sample.py
parentb22d127a39ddd10d93deee3d96e643657ad53a49 (diff)
mempolicy: fix refcount leak in mpol_set_shared_policy()
When shared_policy_replace() fails to allocate new->policy is not freed correctly by mpol_set_shared_policy(). The problem is that shared mempolicy code directly call kmem_cache_free() in multiple places where it is easy to make a mistake. This patch creates an sp_free wrapper function and uses it. The bug was introduced pre-git age (IOW, before 2.6.12-rc2). [[email protected]: Editted changelog] Signed-off-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Mel Gorman <[email protected]> Reviewed-by: Christoph Lameter <[email protected]> Cc: Josh Boyer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions