Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Revert my wrong r1.380 and add a comment instead.



details:   https://anonhg.NetBSD.org/src/rev/fe181181b4d7
branches:  trunk
changeset: 359271:fe181181b4d7
user:      isaki <isaki%NetBSD.org@localhost>
date:      Tue Feb 06 04:39:18 2018 +0000

description:
Revert my wrong r1.380 and add a comment instead.

diffstat:

 sys/dev/audio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0b13e5693c73 -r fe181181b4d7 sys/dev/audio.c
--- a/sys/dev/audio.c   Tue Feb 06 04:21:24 2018 +0000
+++ b/sys/dev/audio.c   Tue Feb 06 04:39:18 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.451 2018/01/21 17:34:33 christos Exp $     */
+/*     $NetBSD: audio.c,v 1.452 2018/02/06 04:39:18 isaki Exp $        */
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.451 2018/01/21 17:34:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.452 2018/02/06 04:39:18 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -1233,7 +1233,7 @@
                    false, 0);
                if (error) {
                        uvm_unmap(kernel_map, vstart, vstart + vsize);
-                       uao_detach(r->uobj);
+                       /* uvm_unmap also detach uobj */
                        r->uobj = NULL;         /* paranoia */
                        return error;
                }



Home | Main Index | Thread Index | Old Index