patch-2.2.0-pre1 linux/fs/ncpfs/inode.c

Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/fs/ncpfs/inode.c linux/fs/ncpfs/inode.c
@@ -382,7 +382,12 @@
 out_no_server:
 	printk(KERN_ERR "ncp_read_super: could not alloc ncp_server\n");
 out_unlock:
-	put_filp(ncp_filp);
+	/* 23/12/1998 Marcin Dalecki <dalecki@cs.net.pl>:
+	 * 
+	 * The previously used put_filp(ncp_filp); was bogous, since
+	 * it doesn't proper unlocking.
+	 */
+	fput(ncp_filp);
 	unlock_super(sb);
 	goto out;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov