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

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