diff options
author | Jesper Juhl <[email protected]> | 2011-01-25 15:07:24 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-01-26 10:50:01 +1000 |
commit | 8dba474f034c322d96ada39cb20cac711d80dcb2 (patch) | |
tree | ef007c5c3088b2ef83be074a7720892b6b8e5e4b /tools/perf/util/trace-event-scripting.c | |
parent | 2ff754fa8f416e82327f2d8f1354a033b66286df (diff) |
mm/memcontrol.c: fix uninitialized variable use in mem_cgroup_move_parent()
In mm/memcontrol.c::mem_cgroup_move_parent() there's a path that jumps
to the 'put_back' label
ret = __mem_cgroup_try_charge(NULL, gfp_mask, &parent, false, charge);
if (ret || !parent)
goto put_back;
where we'll
if (charge > PAGE_SIZE)
compound_unlock_irqrestore(page, flags);
but, we have not assigned anything to 'flags' at this point, nor have we
called 'compound_lock_irqsave()' (which is what sets 'flags'). The
'put_back' label should be moved below the call to
compound_unlock_irqrestore() as per this patch.
Signed-off-by: Jesper Juhl <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Pavel Emelianov <[email protected]>
Cc: "Kirill A. Shutemov" <[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