diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2012-09-17 14:22:24 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2012-09-17 14:22:24 +0000 |
commit | 42625376eb1afeec50981c38c64c022a714b0b54 (patch) | |
tree | b020f03d88ac82c96d40c628de93a5a396ec8593 /sys | |
parent | 1db3700bcde8f3c76c7256f4132dbf19933bc952 (diff) |
fix uninitialized pointer in ffs_write(); ok guenther, beck, deraadt
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 0d11c4bb5f2..cf3bf2ad688 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vnops.c,v 1.68 2012/07/11 12:39:20 guenther Exp $ */ +/* $OpenBSD: ffs_vnops.c,v 1.69 2012/09/17 14:22:23 markus Exp $ */ /* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */ /* @@ -427,6 +427,7 @@ ffs_write(void *v) * buffers force a sync on the vnode to prevent * buffer cache exhaustion. */ + p = uio->uio_procp; VOP_FSYNC(vp, NULL, MNT_WAIT, p); } } |