⬢ DragonFlyBSD Kernel Audit
DF-3129 / fix.diff
← back to finding ↓ download raw
--- a/sys/vfs/msdosfs/msdosfs_vfsops.c
+++ b/sys/vfs/msdosfs/msdosfs_vfsops.c
@@ -801,10 +801,11 @@ msdosfs_sync(struct mount *mp, int waitfor)
 	/*
 	 * Write back each (modified) denode.
 	 */
 	scaninfo.allerror = 0;
 	scaninfo.rescan = 1;
+	scaninfo.waitfor = waitfor;
 	while (scaninfo.rescan) {
 		scaninfo.rescan = 0;
 		vmntvnodescan(mp, VMSC_GETVP|VMSC_NOWAIT, NULL,
 			      msdosfs_sync_scan, &scaninfo);
 	}