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/77d5eec43b42
branches:  trunk
changeset: 847520:77d5eec43b42
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 a384743d588f -r 77d5eec43b42 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