From fbf4b7f70507f79ffdcd0f6f80d3623a7aec4f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Rohl=C3=ADnek?= Date: Mon, 30 Oct 2023 10:22:08 +0100 Subject: [PATCH] fix(storage/fatfs): add missing lock release introduced by IMMEDIATE_FSYNC --- components/fatfs/vfs/vfs_fat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/fatfs/vfs/vfs_fat.c b/components/fatfs/vfs/vfs_fat.c index 169133a08a..4ae04c3d61 100644 --- a/components/fatfs/vfs/vfs_fat.c +++ b/components/fatfs/vfs/vfs_fat.c @@ -424,6 +424,7 @@ static ssize_t vfs_fat_write(void* ctx, int fd, const void * data, size_t size) if (res != FR_OK) { ESP_LOGD(TAG, "%s: fresult=%d", __func__, res); errno = fresult_to_errno(res); + _lock_release(&fat_ctx->lock); return -1; } }