Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern If copyout() fails, make sure to unbusy the mount p...
details: https://anonhg.NetBSD.org/src/rev/ea350c17ee0d
branches: trunk
changeset: 467960:ea350c17ee0d
user: mycroft <mycroft%NetBSD.org@localhost>
date: Wed Mar 31 19:18:45 1999 +0000
description:
If copyout() fails, make sure to unbusy the mount point before returning.
diffstat:
sys/kern/vfs_syscalls.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 2341de0d04f1 -r ea350c17ee0d sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c Wed Mar 31 19:18:36 1999 +0000
+++ b/sys/kern/vfs_syscalls.c Wed Mar 31 19:18:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.c,v 1.132 1999/03/24 05:51:26 mrg Exp $ */
+/* $NetBSD: vfs_syscalls.c,v 1.133 1999/03/31 19:18:45 mycroft Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -671,8 +671,10 @@
}
sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
error = copyout(sp, sfsp, sizeof(*sp));
- if (error)
+ if (error) {
+ vfs_unbusy(mp);
return (error);
+ }
sfsp += sizeof(*sp);
}
count++;
Home |
Main Index |
Thread Index |
Old Index