summaryrefslogtreecommitdiffstats
path: root/fs/fat/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/fat.c')
-rw-r--r--fs/fat/fat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 6f1e57cbc9..6025ad5c30 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -535,6 +535,10 @@ static dir_entry *get_dentfromdir (fsdata * mydata, int startsect,
char s_name[14], l_name[256];
l_name[0] = '\0';
+ if (dentptr->name[0] == DELETED_FLAG) {
+ dentptr++;
+ continue;
+ }
if ((dentptr->attr & ATTR_VOLUME)) {
#ifdef CONFIG_SUPPORT_VFAT
if ((dentptr->attr & ATTR_VFAT) &&
OpenPOWER on IntegriCloud