summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorakamath <akamath@nvidia.com>2010-02-09 18:07:23 +0530
committerakamath <akamath@nvidia.com>2010-02-10 14:06:18 +0530
commit548f5b94f55f81610e15cc9185872004406d34c3 (patch)
tree18996cc9cc3aecf52d08a1c56148deb44c6f9bc4 /arch
parent74e09ca19e0b34c8172bb67ae03fcd14cdc5f209 (diff)
tegra nvos: Prevent freeing empty pages when vm_map_ram fails.
Change-id: I8225d867ee48c
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/nvos/nvos_page.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/nvos/nvos_page.c b/arch/arm/mach-tegra/nvos/nvos_page.c
index bd8ba90e9ab7..b432ef3bb7f5 100644
--- a/arch/arm/mach-tegra/nvos/nvos_page.c
+++ b/arch/arm/mach-tegra/nvos/nvos_page.c
@@ -99,6 +99,7 @@ static struct nvos_pagemap *nv_alloc_pages(unsigned int count,
for ( ; i < (1<<order); i++)
__free_page(nth_page(compound_page, i));
+ i = count;
} else {
for (i=0; i<count; i++) {
pm->pages[i] = alloc_page(nv_gfp_pool);