]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/kexec_core.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / kernel / kexec_core.c
index d5870723b8ada61a757541e382f29886bdf7f214..15d70a90b50dcaee7e4345c45fe95d825a34cd8d 100644 (file)
@@ -300,6 +300,8 @@ static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order)
 {
        struct page *pages;
 
+       if (fatal_signal_pending(current))
+               return NULL;
        pages = alloc_pages(gfp_mask & ~__GFP_ZERO, order);
        if (pages) {
                unsigned int count, i;