Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/v7fs fix unlock on error.



details:   https://anonhg.NetBSD.org/src/rev/3882ffab6c23
branches:  trunk
changeset: 364578:3882ffab6c23
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 30 12:45:58 2022 +0000

description:
fix unlock on error.

diffstat:

 sys/fs/v7fs/v7fs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 11f964c309c4 -r 3882ffab6c23 sys/fs/v7fs/v7fs_vnops.c
--- a/sys/fs/v7fs/v7fs_vnops.c  Wed Mar 30 10:52:59 2022 +0000
+++ b/sys/fs/v7fs/v7fs_vnops.c  Wed Mar 30 12:45:58 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: v7fs_vnops.c,v 1.35 2022/03/27 16:24:58 christos Exp $ */
+/*     $NetBSD: v7fs_vnops.c,v 1.36 2022/03/30 12:45:58 christos Exp $ */
 
 /*-
  * Copyright (c) 2004, 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.35 2022/03/27 16:24:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.36 2022/03/30 12:45:58 christos Exp $");
 #if defined _KERNEL_OPT
 #include "opt_v7fs.h"
 #endif
@@ -762,8 +762,8 @@
        /* Sync dirent size change. */
        uvm_vnp_setsize(dvp, v7fs_inode_filesize(&parent_node->inode));
 
+unlock:
        VOP_UNLOCK(vp);
-unlock:
        if (abrt)
                VOP_ABORTOP(dvp, cnp);
        return error;



Home | Main Index | Thread Index | Old Index