fix(vfs): Add missing lock release in vfs_fat_truncate

This commit is contained in:
Adam Múdry 2024-02-07 17:17:45 +01:00
parent a55a0354e6
commit 88e4fd9ac1

View File

@ -1040,6 +1040,7 @@ static int vfs_fat_truncate(void* ctx, const char *path, off_t length)
res = f_truncate(file);
if (res != FR_OK) {
_lock_release(&fat_ctx->lock);
ESP_LOGD(TAG, "%s: fresult=%d", __func__, res);
errno = fresult_to_errno(res);
ret = -1;