mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(vfs): Add missing lock release in vfs_fat_truncate
This commit is contained in:
parent
a55a0354e6
commit
88e4fd9ac1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user