Commit 26e4f205 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Pekka Enberg

slub: Fix possible format string bug.

The "name" is determined at runtime and is parsed as format string.
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent c65c1877
......@@ -5169,7 +5169,7 @@ static int sysfs_slab_add(struct kmem_cache *s)
}
s->kobj.kset = slab_kset;
err = kobject_init_and_add(&s->kobj, &slab_ktype, NULL, name);
err = kobject_init_and_add(&s->kobj, &slab_ktype, NULL, "%s", name);
if (err) {
kobject_put(&s->kobj);
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment