patch-2.1.52 linux/fs/msdos/namei.c
Next file: linux/fs/namei.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Wed Aug 20 15:46:44 1997
- Orig file:
v2.1.51/linux/fs/msdos/namei.c
- Orig date:
Thu Aug 14 20:49:17 1997
diff -u --recursive --new-file v2.1.51/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -232,8 +232,11 @@
sb->s_op = &msdos_sops;
res = fat_read_super(sb, data, silent);
- if (res == NULL)
+ if (res == NULL) {
+ sb->s_dev = 0;
MOD_DEC_USE_COUNT;
+ return NULL;
+ }
sb->s_root->d_op = &msdos_dentry_operations;
return res;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov