MIPS: bitops: Use smp_mb__before_atomic in test_* ops
[linux-2.6-microblaze.git] / kernel / kexec_core.c
index d587072..15d70a9 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;