Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev Pull up following revision(s) (requested by riast...



details:   https://anonhg.NetBSD.org/src/rev/b1dd0c5e2de5
branches:  netbsd-8
changeset: 852683:b1dd0c5e2de5
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Dec 08 10:30:31 2019 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1469):

        sys/dev/cons.c: revision 1.76
        sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

diffstat:

 sys/dev/cons.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 74b8e7ebdeed -r b1dd0c5e2de5 sys/dev/cons.c
--- a/sys/dev/cons.c    Sat Dec 07 08:47:39 2019 +0000
+++ b/sys/dev/cons.c    Sun Dec 08 10:30:31 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cons.c,v 1.75 2015/05/29 16:26:45 macallan Exp $       */
+/*     $NetBSD: cons.c,v 1.75.10.1 2019/12/08 10:30:31 martin Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.75 2015/05/29 16:26:45 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.75.10.1 2019/12/08 10:30:31 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -158,6 +158,7 @@
        if (error == 0) {
                error = VOP_CLOSE(vp, flag, kauth_cred_get());
                VOP_UNLOCK(vp);
+               vrele(vp);
        }
        return error;
 }



Home | Main Index | Thread Index | Old Index