Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio Use M_WAITOK instead of M_NOWAIT.



details:   https://anonhg.NetBSD.org/src/rev/a80c68493886
branches:  trunk
changeset: 967886:a80c68493886
user:      isaki <isaki%NetBSD.org@localhost>
date:      Thu Dec 26 11:24:55 2019 +0000

description:
Use M_WAITOK instead of M_NOWAIT.
These allocations don't require NOWAIT constraints.
Will fix PR kern/54796.

diffstat:

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

diffs (35 lines):

diff -r 59e1252e0425 -r a80c68493886 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Thu Dec 26 11:09:11 2019 +0000
+++ b/sys/dev/audio/audio.c     Thu Dec 26 11:24:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.33 2019/11/06 13:37:27 isaki Exp $ */
+/*     $NetBSD: audio.c,v 1.34 2019/12/26 11:24:55 isaki Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.33 2019/11/06 13:37:27 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.34 2019/12/26 11:24:55 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -3070,14 +3070,14 @@
 
        if (memblock != NULL) {
                if (bytes != 0) {
-                       return kern_realloc(memblock, bytes, M_NOWAIT);
+                       return kern_realloc(memblock, bytes, M_WAITOK);
                } else {
                        kern_free(memblock);
                        return NULL;
                }
        } else {
                if (bytes != 0) {
-                       return kern_malloc(bytes, M_NOWAIT);
+                       return kern_malloc(bytes, M_WAITOK);
                } else {
                        return NULL;
                }



Home | Main Index | Thread Index | Old Index