]> Git Repo - linux.git/blobdiff - mm/slab.c
vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
[linux.git] / mm / slab.c
index 7a269db050eed88b5273d2c3820ff8e453de518b..29300fc1289a8375188853a07edb64d69df634e0 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2211,6 +2211,8 @@ static int drain_freelist(struct kmem_cache *cache,
                raw_spin_unlock_irq(&n->list_lock);
                slab_destroy(cache, slab);
                nr_freed++;
+
+               cond_resched();
        }
 out:
        return nr_freed;
This page took 0.034706 seconds and 4 git commands to generate.