Module Name:    src
Committed By:   isaki
Date:           Tue Feb  6 04:39:18 UTC 2018

Modified Files:
        src/sys/dev: audio.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.451 -r1.452 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/audio.c
diff -u src/sys/dev/audio.c:1.451 src/sys/dev/audio.c:1.452
--- src/sys/dev/audio.c:1.451	Sun Jan 21 17:34:33 2018
+++ src/sys/dev/audio.c	Tue Feb  6 04:39:18 2018
@@ -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 <nathanialsl...@yahoo.com.au>
@@ -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 @@ audio_alloc_ring(struct audio_softc *sc,
 		    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;
 		}

Reply via email to