lkml.org 
[lkml]   [1999]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [minor patch] exit_files()/exit_mm() -> NULL vs &init_xx
Considered the previous changes probably it's nicer to change also this
(even if setting tsk->files in copy_files() currently it's not needed and
could be safely avoided).

Index: kernel/fork.c
===================================================================
RCS file: /var/cvs/linux/kernel/fork.c,v
retrieving revision 1.1.2.20
diff -u -r1.1.2.20 fork.c
--- fork.c 1999/04/17 23:40:26 1.1.2.20
+++ linux/kernel/fork.c 1999/05/02 00:13:45
@@ -453,7 +453,7 @@
goto out;
}

- tsk->files = NULL;
+ tsk->files = &init_files;
error = -ENOMEM;
newf = kmem_cache_alloc(files_cachep, SLAB_KERNEL);
if (!newf)

Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.029 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site