aboutsummaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-03-28 07:22:03 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-03-28 07:22:03 +0000
commit32d3966f1a534e8ac40b2cf6ae7f297bdd4ebf0e (patch)
treebd1221e98512f82b3eab954488a160e1e4e9d2d3 /sys/msdosfs/msdosfs_fat.c
parent432f450f4e8881fc6883b803f1de3e47489d0273 (diff)
Fix dead hang writing to FAT
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Notes
Notes: svn path=/head/; revision=34920
Diffstat (limited to 'sys/msdosfs/msdosfs_fat.c')
-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 9aebfb69f760..d92ee3eed8ea 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_fat.c,v 1.17 1998/02/18 09:28:36 jkh Exp $ */
+/* $Id: msdosfs_fat.c,v 1.18 1998/02/20 13:11:49 bde Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.28 1997/11/17 15:36:49 ws Exp $ */
/*-
@@ -355,7 +355,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 += N_INUSEBITS)
if (pmp->pm_inusemap[cn / N_INUSEBITS] != (u_int)-1)
break;
pmp->pm_nxtfree = cn