]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/select.c
afs: support the CB.ProbeUuid RPC op
[linux-2.6-omap-h63xx.git] / fs / select.c
index 47f47925aea2bead2a4491d672476a7a63e9be1b..00f58c5c7e05251ef4350e762481df8b07294212 100644 (file)
@@ -260,7 +260,7 @@ int do_select(int n, fd_set_bits *fds, s64 *timeout)
                wait = NULL;
                if (retval || !*timeout || signal_pending(current))
                        break;
-               if(table.error) {
+               if (table.error) {
                        retval = table.error;
                        break;
                }
@@ -739,7 +739,7 @@ asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
                        timeout_jiffies = -1;
                else
 #endif
-                       timeout_jiffies = msecs_to_jiffies(timeout_msecs);
+                       timeout_jiffies = msecs_to_jiffies(timeout_msecs) + 1;
        } else {
                /* Infinite (< 0) or no (0) timeout */
                timeout_jiffies = timeout_msecs;