mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
FAT: Fix 'Missing unlock' in fs_fat32.c
Jira: PDFW15IS-265 Coverity-ID: 10590 10589 Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
+2
-2
@@ -547,7 +547,7 @@ static ssize_t fat_read(FAR struct file *filep, FAR char *buffer,
|
||||
ret = fat_currentsector(fs, ff, filep->f_pos);
|
||||
if (ret < 0)
|
||||
{
|
||||
return ret;
|
||||
goto errout_with_semaphore;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -799,7 +799,7 @@ static ssize_t fat_write(FAR struct file *filep, FAR const char *buffer,
|
||||
ret = fat_currentsector(fs, ff, filep->f_pos);
|
||||
if (ret < 0)
|
||||
{
|
||||
return ret;
|
||||
goto errout_with_semaphore;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user