diff options
author | Lee Schermerhorn <[email protected]> | 2010-06-29 15:05:30 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-06-29 15:29:31 -0700 |
commit | 5c0c165490e763eddcbb0b6c8c41ab5cc11ddea0 (patch) | |
tree | 729ad93071eaf065e7dfb7c7d94b0207b2eced8e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 56480287f9776adc5b1a7a335ef62a9b9879ad7f (diff) |
mempolicy: fix dangling reference to tmpfs superblock mpol
My patch to "Factor out duplicate put/frees in mpol_shared_policy_init()
to a common return path"; and Dan Carpenter's fix thereto both left a
dangling reference to the incoming tmpfs superblock mempolicy structure.
A similar leak was introduced earlier when the nodemask was moved offstack
to the scratch area despite the note in the comment block regarding the
incoming ref.
Move the remaining 'put of the incoming "mpol" to the common exit path to
drop the reference.
Signed-off-by: Lee Schermerhorn <[email protected]>
Acked-by: Dan Carpenter <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions