drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
[deliverable/linux.git] / lib / stackdepot.c
index 60f77f1d470a0589ccdeacbb52a9eb45a8a1cec1..da015cda4f4baf68b4007a91a8d40287fe7f48b5 100644 (file)
@@ -243,6 +243,12 @@ depot_stack_handle_t depot_save_stack(struct stack_trace *trace,
                alloc_flags &= ~GFP_ZONEMASK;
                alloc_flags &= (GFP_ATOMIC | GFP_KERNEL);
                alloc_flags |= __GFP_NOWARN;
+               /*
+                * Avoid using current->mempolicy which may already have
+                * been freed -- we may be in the process of saving the
+                * stack for exactly that __mpol_put() call.
+                */
+               alloc_flags |= __GFP_THISNODE;
                page = alloc_pages(alloc_flags, STACK_ALLOC_ORDER);
                if (page)
                        prealloc = page_address(page);
This page took 0.024998 seconds and 5 git commands to generate.