From d02c0c05ae4042b660e488027dac92d9f9afe883 Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Fri, 13 Oct 2017 07:54:40 -0600 Subject: [PATCH] FS FAT: Fix hard-fault when listing contents of FAT root --- fs/fat/fs_fat32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 6c4e234c0cb..bbc0d0aa648 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -2680,7 +2680,7 @@ static int fat_stat_root(FAR struct fat_mountpt_s *fs, buf->st_mode = S_IFDIR | S_IROTH | S_IRGRP | S_IRUSR | S_IWOTH | S_IWGRP | S_IWUSR; - return fat_stat_common(fs, direntry, buf); + return OK; } /****************************************************************************