From 6ac7cbf4d263e8bf6fa39eb0e070b0bbb47fe3a0 Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Tue, 2 Jan 2024 17:02:30 +0800 Subject: [PATCH] system/fastboot: fastboot flash - call fsync() Signed-off-by: wangjianyu3 --- system/fastboot/fastboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index f216e07a5..1d29a9def 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -237,6 +237,7 @@ static void fastboot_flash_close(int fd) { if (fd >= 0) { + fsync(fd); close(fd); } }