patch-2.3.1 linux/fs/pipe.c

Next file: linux/fs/proc/array.c
Previous file: linux/fs/nfsd/export.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/fs/pipe.c linux/fs/pipe.c
@@ -414,7 +414,7 @@
 		} else {
 			PIPE_BASE(*inode) = (char *) page;
 			inode->i_op = &pipe_inode_operations;
-			PIPE_WAIT(*inode) = NULL;
+			init_waitqueue_head(&PIPE_WAIT(*inode));
 			PIPE_START(*inode) = PIPE_LEN(*inode) = 0;
 			PIPE_RD_OPENERS(*inode) = PIPE_WR_OPENERS(*inode) = 0;
 			PIPE_READERS(*inode) = PIPE_WRITERS(*inode) = 1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)