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/b83b6c9220ad
branches:  trunk
changeset: 829572:b83b6c9220ad
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 99aea2870ea4 -r b83b6c9220ad 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