summaryrefslogtreecommitdiff
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-02 09:03:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-02 09:03:04 +0000
commit6fe5792a2b51fdb9c587788dc50d42f075b27f36 (patch)
tree841310428e7a089e562ab6c59c6b630033329268 /sys/msdosfs
parent86e83f031945ac9bc55d5b10ee50333fa464c2b6 (diff)
correct a fat32 write lockup; oki@yk.rim.or.jp
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_fat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index ea97cf97b6f..3bf6fccfbf3 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_fat.c,v 1.6 1998/04/17 19:31:08 deraadt Exp $ */
+/* $OpenBSD: msdosfs_fat.c,v 1.7 1998/05/02 09:03:03 deraadt Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */
/*-
@@ -354,7 +354,7 @@ updatefats(pmp, bp, fatbn)
* The cluster indicated in FSInfo isn't free
* any longer. Got get a new free one.
*/
- for (cn = 0; cn < pmp->pm_maxcluster;)
+ for (cn = 0; cn < pmp->pm_maxcluster; cn++)
if (pmp->pm_inusemap[cn / N_INUSEBITS] != (u_int)-1)
break;
pmp->pm_nxtfree = cn