patch-1.3.95 linux/fs/pipe.c

Next file: linux/fs/ufs/ufs_super.c
Previous file: linux/fs/locks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.94/linux/fs/pipe.c linux/fs/pipe.c
@@ -423,6 +423,7 @@
 			break;
 	if (j < 2) {
 		iput(inode);
+		iput(inode);
 		if (j)
 			f[0]->f_count--;
 		return -ENFILE;
@@ -434,6 +435,7 @@
 			j++;
 		}
 	if (j<2) {
+		iput(inode);
 		iput(inode);
 		f[0]->f_count--;
 		f[1]->f_count--;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this