[PATCH] fix weird logic in alloc_fdtable()