patch-2.1.90 linux/fs/proc/mem.c
Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Wed Mar 11 15:47:11 1998
-  Orig file: 
v2.1.89/linux/fs/proc/mem.c
-  Orig date: 
Tue Oct 21 08:57:29 1997
diff -u --recursive --new-file v2.1.89/linux/fs/proc/mem.c linux/fs/proc/mem.c
@@ -83,7 +83,9 @@
 	char *tmp;
 	ssize_t scount, i;
 
+	read_lock(&tasklist_lock);
 	tsk = get_task(inode->i_ino >> 16);
+	read_unlock(&tasklist_lock);	/* FIXME: This should really be done only afetr not using tsk any more!!! */
 	if (!tsk)
 		return -ESRCH;
 	addr = *ppos;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov