diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-01-24 18:12:47 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-01-24 18:12:47 +0000 |
commit | 1825bd20d1dff4914cd378af04154262b5c9ebc6 (patch) | |
tree | 83ae0bc345c7f2c464520c69f9110a458e1e5874 /sys/msdosfs/msdosfs_vfsops.c | |
parent | ff831112e52dfce16877bd095dc86f99f4980513 (diff) |
"Fix" crash caused by FAT32 re-use of small buf from buffer cache,
at least until problem (starting somewhere between 4.1 and 4.2)
in buffer cache is found and a general fix is in place. Simply
B_INVAL small buf so it doesn't come back.
Addresses PR#6290, confirmed by submitter RD Thrush.
ok tedu@ "should be marked XXX" thib@
Diffstat (limited to 'sys/msdosfs/msdosfs_vfsops.c')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 20f0ad8fc63..502fd89a945 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.56 2009/12/19 00:27:17 krw Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.57 2010/01/24 18:12:46 krw Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -475,6 +475,8 @@ msdosfs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p, ; else pmp->pm_fsinfo = 0; + /* XXX make sure this tiny buf doesn't come back in fillinusemap! */ + SET(bp->b_flags, B_INVAL); brelse(bp); bp = NULL; } |