Module Name:    src
Committed By:   mlelstv
Date:           Wed Mar 11 13:48:46 UTC 2020

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

Log Message:
Don't wait for data buffer.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/dev/cgd.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/cgd.c
diff -u src/sys/dev/cgd.c:1.122 src/sys/dev/cgd.c:1.123
--- src/sys/dev/cgd.c:1.122	Mon Mar  9 08:33:15 2020
+++ src/sys/dev/cgd.c	Wed Mar 11 13:48:45 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.122 2020/03/09 08:33:15 mlelstv Exp $ */
+/* $NetBSD: cgd.c,v 1.123 2020/03/11 13:48:45 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.122 2020/03/09 08:33:15 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.123 2020/03/11 13:48:45 mlelstv Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -636,7 +636,7 @@ cgd_getdata(struct cgd_softc *sc, unsign
 	if (data)
 		return data;
 
-	return malloc(size, M_DEVBUF, M_WAITOK);
+	return malloc(size, M_DEVBUF, M_NOWAIT);
 }
 
 static void

Reply via email to