patch-2.4.21 linux-2.4.21/fs/umsdos/dir.c
Next file: linux-2.4.21/fs/umsdos/namei.c
Previous file: linux-2.4.21/fs/ufs/util.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
2003-06-13 07:51:37.000000000 -0700
-  Orig file: 
linux-2.4.20/fs/umsdos/dir.c
-  Orig date: 
2001-09-01 10:59:08.000000000 -0700
diff -urN linux-2.4.20/fs/umsdos/dir.c linux-2.4.21/fs/umsdos/dir.c
@@ -654,6 +654,9 @@
 	path = __d_path(dentry, current->fs->rootmnt, dentry->d_sb->s_root, current->fs->rootmnt, buffer, len); /* FIXME: current->fs->rootmnt */
 	spin_unlock(&dcache_lock);
 
+	if (IS_ERR(path))
+		return path;
+
 	if (*path == '/')
 		path++; /* skip leading '/' */
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)