diff options
author | Johannes Weiner <[email protected]> | 2009-04-30 15:08:08 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-05-02 15:36:09 -0700 |
commit | bc43f75cd9815833b27831600ccade672edb5e43 (patch) | |
tree | 87ded2ff291b63259ac3df846a09d8348174f636 /net/lapb/lapb_in.c | |
parent | 53951bd57dfe2da58f86cdf276719082d80d8485 (diff) |
mm: fix pageref leak in do_swap_page()
By the time the memory cgroup code is notified about a swapin we
already hold a reference on the fault page.
If the cgroup callback fails make sure to unlock AND release the page
reference which was taken by lookup_swap_cach(), or we leak the reference.
Signed-off-by: Johannes Weiner <[email protected]>
Cc: Balbir Singh <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions