Skip to content

Commit

Permalink
SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release
Browse files Browse the repository at this point in the history
We agreed to remove the WARN_ON_ONCE before 2.6.22 is released.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jul 1, 2007
1 parent 0f4915b commit 1702222
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,6 @@ static inline struct kmem_cache *__find_general_cachep(size_t size,
*/
BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL);
#endif
WARN_ON_ONCE(size == 0);
while (size > csizep->cs_size)
csizep++;

Expand Down

0 comments on commit 1702222

Please sign in to comment.