Signed-off-by: WANG Cong  <xiyou.wangcong@gmail.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
WANG Cong 2007-05-09 07:10:02 +02:00 коммит произвёл Adrian Bunk
Родитель d3e6975e0f
Коммит ccf6780dc3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -64,7 +64,7 @@ EXPORT_SYMBOL(poll_initwait);
static void free_poll_entry(struct poll_table_entry *entry) static void free_poll_entry(struct poll_table_entry *entry)
{ {
remove_wait_queue(entry->wait_address,&entry->wait); remove_wait_queue(entry->wait_address, &entry->wait);
fput(entry->filp); fput(entry->filp);
} }
@ -128,7 +128,7 @@ static void __pollwait(struct file *filp, wait_queue_head_t *wait_address,
entry->filp = filp; entry->filp = filp;
entry->wait_address = wait_address; entry->wait_address = wait_address;
init_waitqueue_entry(&entry->wait, current); init_waitqueue_entry(&entry->wait, current);
add_wait_queue(wait_address,&entry->wait); add_wait_queue(wait_address, &entry->wait);
} }
#define FDS_IN(fds, n) (fds->in + n) #define FDS_IN(fds, n) (fds->in + n)