Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf Add missing vrele() as found by the testsuite.



details:   https://anonhg.NetBSD.org/src/rev/13267e40b4a5
branches:  trunk
changeset: 335357:13267e40b4a5
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sun Jan 04 14:23:37 2015 +0000

description:
Add missing vrele() as found by the testsuite.

Thanks Jurgen Hannken for the patch.

diffstat:

 sys/fs/udf/udf_vnops.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r eb08a6a1564f -r 13267e40b4a5 sys/fs/udf/udf_vnops.c
--- a/sys/fs/udf/udf_vnops.c    Sun Jan 04 11:54:43 2015 +0000
+++ b/sys/fs/udf/udf_vnops.c    Sun Jan 04 14:23:37 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_vnops.c,v 1.95 2014/12/03 21:37:55 reinoud Exp $ */
+/* $NetBSD: udf_vnops.c,v 1.96 2015/01/04 14:23:37 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.95 2014/12/03 21:37:55 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.96 2015/01/04 14:23:37 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -1742,6 +1742,8 @@
                        /* remove node */
                        udf_dir_detach(udf_node->ump, dir_node, udf_node, cnp);
                        udf_delete_node(udf_node);
+                       vrele(*vpp);
+                       *vpp = NULL;
                }
        }
        return error;



Home | Main Index | Thread Index | Old Index