diff options
author | 2011-01-25 15:07:27 -0800 | |
---|---|---|
committer | 2011-01-26 10:50:03 +1000 | |
commit | 01c88e2d6b7330c0cc5867fe2297e7d826e1337d (patch) | |
tree | 0a905aa1558af7fd401d768ead121e2b11a4a2f4 /kernel/rtmutex.c | |
parent | mm: migration: clarify migrate_pages() comment (diff) | |
download | wireguard-linux-01c88e2d6b7330c0cc5867fe2297e7d826e1337d.tar.xz wireguard-linux-01c88e2d6b7330c0cc5867fe2297e7d826e1337d.zip |
memcg: fix account leak at failure of memsw acconting
Commit 4b53433468 ("memcg: clean up try_charge main loop") removes a
cancel of charge at case: memory charge-> success. mem+swap charge->
failure.
This leaks usage of memory. Fix it.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: <stable@kernel.org> [2.6.36+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/rtmutex.c')
0 files changed, 0 insertions, 0 deletions