[PATCH] fix weird logic in alloc_fdtable()
authorAndrew Morton <akpm@osdl.org>
Mon, 10 Jul 2006 11:45:31 +0000 (04:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:25 +0000 (13:24 -0700)
commit92eb7a2f28d551acedeb5752263267a64b1f5ddf
treee77b0dee5598df8f44a6f57783a3344e2e4e98c1
parent38e0e8c0550eaed1af48ec5ad9ddb8a25e8b04ae
[PATCH] fix weird logic in alloc_fdtable()

There's a fairly obvious infinite loop in there.

Also, use roundup_pow_of_two() rather than open-coding stuff.

Cc: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/file.c