]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix kmalloc_sizes[] indexing
authorAndrew Morton <akpm@digeo.com>
Sat, 12 Apr 2003 19:58:14 +0000 (12:58 -0700)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 12 Apr 2003 19:58:14 +0000 (12:58 -0700)
commit830d6ef217c434096a324ca10ad236049f25b8ce
treef990d770c826f46aea2ded11dffe8304874cfaf1
parent17817b89d5d2985b412444e99fe3341b18921aae
[PATCH] Fix kmalloc_sizes[] indexing

From: Brian Gerst and David Mosberger

The previous fix to the kmalloc_sizes[] array didn't null-terminate the
correct array.

Fix that up, and also avoid running ARRAY_SIZE() against an array which is
really a null-terminated list.
mm/slab.c