Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Minor fix to previous -- release vnode after last us...
details: https://anonhg.NetBSD.org/src/rev/cb5561bac808
branches: trunk
changeset: 780537:cb5561bac808
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Jul 28 16:14:17 2012 +0000
description:
Minor fix to previous -- release vnode after last use, not before.
diffstat:
sys/dev/fss.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r c1776057ec96 -r cb5561bac808 sys/dev/fss.c
--- a/sys/dev/fss.c Sat Jul 28 16:08:39 2012 +0000
+++ b/sys/dev/fss.c Sat Jul 28 16:14:17 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fss.c,v 1.82 2012/07/28 15:12:42 hannken Exp $ */
+/* $NetBSD: fss.c,v 1.83 2012/07/28 16:14:17 hannken Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.82 2012/07/28 15:12:42 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.83 2012/07/28 16:14:17 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -706,13 +706,13 @@
}
sc->sc_bdev = vp->v_rdev;
- vrele(vp);
/*
* Get the block device size.
*/
error = getdisksize(vp, &numsec, &secsize);
+ vrele(vp);
if (error)
return error;
Home |
Main Index |
Thread Index |
Old Index