patch-2.3.22 linux/fs/super.c
Next file: linux/include/asm-alpha/pgtable.h
Previous file: linux/fs/smbfs/inode.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu Oct 14 14:22:09 1999
-  Orig file: 
v2.3.21/linux/fs/super.c
-  Orig date: 
Tue Aug 31 17:29:14 1999
diff -u --recursive --new-file v2.3.21/linux/fs/super.c linux/fs/super.c
@@ -1186,6 +1186,8 @@
 
 	memset(&filp, 0, sizeof(filp));
 	d_inode = get_empty_inode();
+	if (!d_inode)
+		panic(__FUNCTION__ ": unable to allocate root inode");
 	d_inode->i_rdev = ROOT_DEV;
 	filp.f_dentry = NULL;
 	if ( root_mountflags & MS_RDONLY)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)