diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1998-08-17 23:26:18 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1998-08-17 23:26:18 +0000 |
commit | 9bd45bb6bc19f07504127c095fe078f8ae1477cb (patch) | |
tree | 491ef31e8d492f44c31c97d92c4ea8d3e9cefb46 /sys | |
parent | 5fc0ef81be55e340c018e51d4c1aaa8f8783499c (diff) |
Make sure the file system is unbusied on error.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 1fe47820cff..d9b078ddabb 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.44 1998/08/17 22:19:06 csapuntz Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.45 1998/08/17 23:26:17 csapuntz Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -660,8 +660,10 @@ sys_getfsstat(p, v, retval) sp = &sb; } error = copyout((caddr_t)sp, sfsp, sizeof(*sp)); - if (error) + if (error) { + vfs_unbusy(mp, p); return (error); + } sfsp += sizeof(*sp); } count++; |