diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 8a43db6284eb..673942094328 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1695,11 +1695,6 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, | |||
1695 | for (i = 0; i < area->nr_pages; i++) { | 1695 | for (i = 0; i < area->nr_pages; i++) { |
1696 | struct page *page; | 1696 | struct page *page; |
1697 | 1697 | ||
1698 | if (fatal_signal_pending(current)) { | ||
1699 | area->nr_pages = i; | ||
1700 | goto fail_no_warn; | ||
1701 | } | ||
1702 | |||
1703 | if (node == NUMA_NO_NODE) | 1698 | if (node == NUMA_NO_NODE) |
1704 | page = alloc_page(alloc_mask|highmem_mask); | 1699 | page = alloc_page(alloc_mask|highmem_mask); |
1705 | else | 1700 | else |
@@ -1723,7 +1718,6 @@ fail: | |||
1723 | warn_alloc(gfp_mask, NULL, | 1718 | warn_alloc(gfp_mask, NULL, |
1724 | "vmalloc: allocation failure, allocated %ld of %ld bytes", | 1719 | "vmalloc: allocation failure, allocated %ld of %ld bytes", |
1725 | (area->nr_pages*PAGE_SIZE), area->size); | 1720 | (area->nr_pages*PAGE_SIZE), area->size); |
1726 | fail_no_warn: | ||
1727 | vfree(area->addr); | 1721 | vfree(area->addr); |
1728 | return NULL; | 1722 | return NULL; |
1729 | } | 1723 | } |