]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita8790058fc7f4e3e04e8dd09366f778acf02bbc2
tree42314cf5882563b967284900a18e990b8a974a91
parenta54296341b025a1475628557319b19ac7b9bf854
[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