diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2009-05-01 00:08:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-03 00:36:09 +0200 |
commit | bc43f75cd9815833b27831600ccade672edb5e43 (patch) | |
tree | 87ded2ff291b63259ac3df846a09d8348174f636 /sound/oss/dev_table.c | |
parent | acpica: validate package element more carefully in acpi_rs_get_pci_routing_ta... (diff) | |
download | linux-bc43f75cd9815833b27831600ccade672edb5e43.tar.xz linux-bc43f75cd9815833b27831600ccade672edb5e43.zip |
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 <hannes@cmpxchg.org>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/oss/dev_table.c')
0 files changed, 0 insertions, 0 deletions