[PATCH] select: time comparison fixes
authorAndrew Morton <akpm@osdl.org>
Fri, 17 Feb 2006 21:52:58 +0000 (13:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Feb 2006 21:59:28 +0000 (13:59 -0800)
commit74910e6c7dc7471b286a883c1a7af70483ffd2ba
tree42314cf5882563b967284900a18e990b8a974a91
parent200a4552af34b9a32e1f68a881a9ed5c7ec699cc
[PATCH] select: time comparison fixes

I got all of these backwards.  We want to return

min(input timeout, new timeout)

to userspace to prevent increasing the time-remaining value.

Thanks to Ernst Herzberg <earny@net4u.de> for reporting and diagnosing.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/compat.c
fs/select.c