patch-2.4.25 linux-2.4.25/fs/ntfs/fs.c

Next file: linux-2.4.25/fs/ntfs/support.c
Previous file: linux-2.4.25/fs/nfsd/nfsxdr.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/fs/ntfs/fs.c linux-2.4.25/fs/ntfs/fs.c
@@ -199,7 +199,7 @@
 		ntfs_debug(DEBUG_OTHER, "%s(): Skipping unrepresentable "
 				"file.\n", __FUNCTION__);
 		err = 0;
-		goto err_ret;
+		goto err_noname;
 	}
 	if (!show_sys_files && inum < 0x10UL) {
 		ntfs_debug(DEBUG_OTHER, "%s(): Skipping system file (%s).\n",
@@ -233,8 +233,9 @@
 	if (err)
 		nf->ret_code = err;
 err_ret:
-	nf->namelen = 0;
 	ntfs_free(nf->name);
+err_noname:
+	nf->namelen = 0;
 	nf->name = NULL;
 	return err;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)