[PATCH] fix weird logic in alloc_fdtable()
[firefly-linux-kernel-4.4.55.git] / fs / eventpoll.c
index 9c677bbd0b0823c3bc6d28ee1bf8d2545ee22ced..19ffb043abbccfb7fc564d114acabeaae8984a60 100644 (file)
@@ -120,7 +120,7 @@ struct epoll_filefd {
  */
 struct wake_task_node {
        struct list_head llink;
-       task_t *task;
+       struct task_struct *task;
        wait_queue_head_t *wq;
 };
 
@@ -413,7 +413,7 @@ static void ep_poll_safewake(struct poll_safewake *psw, wait_queue_head_t *wq)
 {
        int wake_nests = 0;
        unsigned long flags;
-       task_t *this_task = current;
+       struct task_struct *this_task = current;
        struct list_head *lsthead = &psw->wake_task_list, *lnk;
        struct wake_task_node *tncur;
        struct wake_task_node tnode;