patch-2.4.0-test10 linux/drivers/isdn/avmb1/capifs.c

Next file: linux/drivers/isdn/hysdn/boardergo.c
Previous file: linux/drivers/input/input.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/isdn/avmb1/capifs.c linux/drivers/isdn/avmb1/capifs.c
@@ -1,11 +1,14 @@
 /*
- * $Id: capifs.c,v 1.9 2000/08/20 07:30:13 keil Exp $
+ * $Id: capifs.c,v 1.10 2000/10/12 10:12:35 calle Exp $
  * 
  * (c) Copyright 2000 by Carsten Paeth (calle@calle.de)
  *
  * Heavily based on devpts filesystem from H. Peter Anvin
  * 
  * $Log: capifs.c,v $
+ * Revision 1.10  2000/10/12 10:12:35  calle
+ * Bugfix: second iput(inode) on umount, destroies a foreign inode.
+ *
  * Revision 1.9  2000/08/20 07:30:13  keil
  * changes for 2.4
  *
@@ -69,7 +72,7 @@
 
 MODULE_AUTHOR("Carsten Paeth <calle@calle.de>");
 
-static char *revision = "$Revision: 1.9 $";
+static char *revision = "$Revision: 1.10 $";
 
 struct capifs_ncci {
 	struct inode *inode;
@@ -552,6 +555,7 @@
 				continue;
 			if (np->inode) {
 				inode = np->inode;
+				np->inode = 0;
 				np->used = 0;
 				inode->i_nlink--;
 				iput(inode);

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