[PATCH] revert oversized kmalloc check
authorAndrew Morton <akpm@osdl.org>
Fri, 23 Sep 2005 20:24:10 +0000 (13:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Sep 2005 20:35:37 +0000 (13:35 -0700)
commitdbdb90450059e17e8e005ebd3ce0a1fd6008a0c8
tree0dc0220667566698e5c602bcd408d4255c86037a
parent86513e726b494796175b6c4fdd705797f01b0ca2
[PATCH] revert oversized kmalloc check

As davem points out, this wasn't such a great idea.  There may be some code
which does:

size = 1024*1024;
while (kmalloc(size, ...) == 0)
size /= 2;

which will now explode.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Christoph Lameter <christoph@lameter.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c