]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/exit.c
relay: fix splice problem
[linux-2.6-omap-h63xx.git] / kernel / exit.c
index 3d320003cc03f627e45d4328d53def9985333a77..2a9d98c641ac4926eafc8a06312625fbd6218080 100644 (file)
@@ -507,8 +507,9 @@ void put_files_struct(struct files_struct *files)
        }
 }
 
-void reset_files_struct(struct task_struct *tsk, struct files_struct *files)
+void reset_files_struct(struct files_struct *files)
 {
+       struct task_struct *tsk = current;
        struct files_struct *old;
 
        old = tsk->files;
@@ -966,7 +967,7 @@ NORET_TYPE void do_exit(long code)
        proc_exit_connector(tsk);
        exit_notify(tsk, group_dead);
 #ifdef CONFIG_NUMA
-       mpol_free(tsk->mempolicy);
+       mpol_put(tsk->mempolicy);
        tsk->mempolicy = NULL;
 #endif
 #ifdef CONFIG_FUTEX