X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=mm%2Fslub.c;h=7ec0a965c6a3a366550b2500f9880f65e5025138;hb=f14180d091364aeb1473123614327452e3a2a1cb;hp=7aa6f433f4de554d308e774d9e9b40507c6ab48a;hpb=2d47b8aac7ba697ffe05f839a3b4c3c628b4e430;p=mirror_ubuntu-zesty-kernel.git diff --git a/mm/slub.c b/mm/slub.c index 7aa6f433f4de..7ec0a965c6a3 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1422,6 +1422,10 @@ static int init_cache_random_seq(struct kmem_cache *s) int err; unsigned long i, count = oo_objects(s->oo); + /* Bailout if already initialised */ + if (s->random_seq) + return 0; + err = cache_random_seq_create(s, count, GFP_KERNEL); if (err) { pr_err("SLUB: Unable to initialize free list for %s\n",