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

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)