From e42fa8ffe328c85f5598fafc3bd24e625724c6ec Mon Sep 17 00:00:00 2001 From: Andreas Reichle Date: Mon, 4 Jul 2022 11:21:50 +0200 Subject: [PATCH] add missing unlock in file_truncate in FATFileSystem --- storage/filesystem/fat/source/FATFileSystem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/filesystem/fat/source/FATFileSystem.cpp b/storage/filesystem/fat/source/FATFileSystem.cpp index 3006a24530e..98fa2a5f981 100644 --- a/storage/filesystem/fat/source/FATFileSystem.cpp +++ b/storage/filesystem/fat/source/FATFileSystem.cpp @@ -755,6 +755,7 @@ int FATFileSystem::file_truncate(fs_file_t file, off_t length) return fat_error_remap(res); } + unlock(); return 0; }