diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2014-01-04 16:32:31 +0900 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2014-01-13 21:36:34 +0200 |
commit | 26e4f2057516f1c457e0e95346a00303f983ad53 (patch) | |
tree | b1523f7150a10b8a486391a8bd8dc17ebb157a81 /mm/slub.c | |
parent | c65c1877bd6826ce0d9713d76e30a7bed8e49f38 (diff) | |
download | op-kernel-dev-26e4f2057516f1c457e0e95346a00303f983ad53.zip op-kernel-dev-26e4f2057516f1c457e0e95346a00303f983ad53.tar.gz |
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/slub.c')
-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; |