diff options
Diffstat (limited to 'fs/select.c')
-rw-r--r-- | fs/select.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/select.c b/fs/select.c index 4c88f0437..1328660b0 100644 --- a/fs/select.c +++ b/fs/select.c @@ -25,6 +25,7 @@ #include <linux/smp.h> #include <linux/smp_lock.h> #include <linux/poll.h> +#include <linux/file.h> #include <asm/uaccess.h> #include <asm/system.h> @@ -59,6 +60,7 @@ static void free_wait(poll_table * p) p->nr--; entry--; remove_wait_queue(entry->wait_address,&entry->wait); + fput(entry->filp); } } @@ -197,7 +199,6 @@ out: free_page((unsigned long) wait_table.entry); } out_nowait: - current->timeout = 0; unlock_kernel(); return retval; } |