diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-07-02 13:05:10 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-07-02 13:05:10 +0900 |
commit | 12462d77ec78be9fb033580b7b64ddf9d0fee44b (patch) | |
tree | a21157428d46259ed2c8a727ac12a2e658d8181a /drivers/char/agp/generic.c | |
parent | 598ee698d9db7beb06e12f4ea9d9a5fbc03a3a77 (diff) | |
parent | 97e0214044d9f279a3d6286c9f859696ef0b7ebe (diff) | |
download | blackbird-op-linux-12462d77ec78be9fb033580b7b64ddf9d0fee44b.tar.gz blackbird-op-linux-12462d77ec78be9fb033580b7b64ddf9d0fee44b.zip |
Merge branches 'sh/highmem' and 'sh/stable-updates'
Diffstat (limited to 'drivers/char/agp/generic.c')
-rw-r--r-- | drivers/char/agp/generic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index 4b51982fd23a..d2abf5143983 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c @@ -97,20 +97,18 @@ EXPORT_SYMBOL(agp_flush_chipset); void agp_alloc_page_array(size_t size, struct agp_memory *mem) { mem->pages = NULL; - mem->vmalloc_flag = false; if (size <= 2*PAGE_SIZE) - mem->pages = kmalloc(size, GFP_KERNEL | __GFP_NORETRY); + mem->pages = kmalloc(size, GFP_KERNEL | __GFP_NOWARN); if (mem->pages == NULL) { mem->pages = vmalloc(size); - mem->vmalloc_flag = true; } } EXPORT_SYMBOL(agp_alloc_page_array); void agp_free_page_array(struct agp_memory *mem) { - if (mem->vmalloc_flag) { + if (is_vmalloc_addr(mem->pages)) { vfree(mem->pages); } else { kfree(mem->pages); |