]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fs: sys_poll with timeout -1 bug fix
authorFrode Isaksen <frode.isaksen@gmail.com>
Sun, 25 Jun 2006 12:49:09 +0000 (05:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:22 +0000 (10:01 -0700)
commit602e33d95f85e3da814db1573fd3e7c03de3537e
tree874f1681da03441b021f81446e72ace451b0cb09
parent413a6d335461d6911316864a33001341f3d0e17e
[PATCH] fs: sys_poll with timeout -1 bug fix

If you do a poll() call with timeout -1, the wait will be a big number
(depending on HZ) instead of infinite wait, since -1 is passed to the
msecs_to_jiffies function.

Signed-off-by: Frode Isaksen <frode.isaksen@gmail.com>
Acked-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/select.c