From: Christoph Lameter Date: Tue, 22 Mar 2011 18:32:53 +0000 (-0500) Subject: slub: Add missing irq restore for the OOM path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fd66c517d5e98de2528d86e0e62f5069ff99f59;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git slub: Add missing irq restore for the OOM path OOM path is missing the irq restore in the CONFIG_CMPXCHG_LOCAL case. Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index 7e4f835e32a..e126cfbd3df 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1857,6 +1857,9 @@ new_slab: } if (!(gfpflags & __GFP_NOWARN) && printk_ratelimit()) slab_out_of_memory(s, gfpflags, node); +#ifdef CONFIG_CMPXCHG_LOCAL + local_irq_restore(flags); +#endif return NULL; debug: if (!alloc_debug_processing(s, c->page, object, addr))