The old code avoided building the wait table when the timeout is 0, now wealways build the wait table.

Below is an update for the memory allocations within fs/select.c:

* do not build the wait table if timeout==0* store the first 8 poll_table_entries within the poll_table.* sys_select: if select is called for <= 256 bits, then store these bitson the stack.* sys_poll: replace the arrays with a linked list, and begin that list onthe stack (the first 24 entries).

It means that sys_poll and sys_select both store around 450 bytes on thestack - IMHO acceptable.