Skip to content

Commit

Permalink
sh: maple: Do not pass SLAB_POISON to kmem_cache_create()
Browse files Browse the repository at this point in the history
SLAB_POISON is not a valid flag for kmem_create_cache() unless
CONFIG_DEBUG_SLAB is set, so remove it from the flags argument.

Acked-by: Adrian McMenamin <adrian@newgolddream.dyndns.info>
Signed-off-by: Matt Fleming <mjf@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Dec 16, 2008
1 parent cefb3d0 commit 93d5463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sh/maple/maple.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ static int __init maple_bus_init(void)

maple_queue_cache =
kmem_cache_create("maple_queue_cache", 0x400, 0,
SLAB_POISON|SLAB_HWCACHE_ALIGN, NULL);
SLAB_HWCACHE_ALIGN, NULL);

if (!maple_queue_cache)
goto cleanup_bothirqs;
Expand Down

0 comments on commit 93d5463

Please sign in to comment.