mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/fastboot: fastboot flash - call fsync()
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
6b53e1fae9
commit
6ac7cbf4d2
1 changed files with 1 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ static void fastboot_flash_close(int fd)
|
|||
{
|
||||
if (fd >= 0)
|
||||
{
|
||||
fsync(fd);
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue