patch-2.4.17 linux/fs/sysv/super.c
Next file: linux/fs/vfat/vfatfs_syms.c
Previous file: linux/fs/sysv/inode.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Dec 21 16:40:33 2001
- Orig file:
linux-2.4.16/fs/sysv/super.c
- Orig date:
Fri Nov 9 21:45:35 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/fs/sysv/super.c linux/fs/sysv/super.c
@@ -325,7 +325,7 @@
/* set up enough so that it can read an inode */
sb->s_op = &sysv_sops;
root_inode = iget(sb,SYSV_ROOT_INO);
- if (!root_inode) {
+ if (!root_inode || is_bad_inode(root_inode)) {
printk("SysV FS: get root inode failed\n");
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)