diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2014-01-04 07:32:31 (GMT) |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2014-01-13 19:36:34 (GMT) |
commit | 26e4f2057516f1c457e0e95346a00303f983ad53 (patch) | |
tree | b1523f7150a10b8a486391a8bd8dc17ebb157a81 /mm | |
parent | c65c1877bd6826ce0d9713d76e30a7bed8e49f38 (diff) | |
download | linux-26e4f2057516f1c457e0e95346a00303f983ad53.tar.xz |
slub: Fix possible format string bug.
The "name" is determined at runtime and is parsed as format string.
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |