Module Name: src
Committed By: riastradh
Date: Sun Dec 19 12:07:29 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/linux: linux_radixtree.c
Log Message:
linux: GFP_ATOMIC, not GFP_NOWAIT
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/linux/linux_radixtree.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/external/bsd/drm2/linux/linux_radixtree.c
diff -u src/sys/external/bsd/drm2/linux/linux_radixtree.c:1.3 src/sys/external/bsd/drm2/linux/linux_radixtree.c:1.4
--- src/sys/external/bsd/drm2/linux/linux_radixtree.c:1.3 Sun Dec 19 11:53:26 2021
+++ src/sys/external/bsd/drm2/linux/linux_radixtree.c Sun Dec 19 12:07:29 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_radixtree.c,v 1.3 2021/12/19 11:53:26 riastradh Exp $ */
+/* $NetBSD: linux_radixtree.c,v 1.4 2021/12/19 12:07:29 riastradh Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_radixtree.c,v 1.3 2021/12/19 11:53:26 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_radixtree.c,v 1.4 2021/12/19 12:07:29 riastradh Exp $");
#include <sys/atomic.h>
#include <sys/kmem.h>
@@ -63,7 +63,7 @@ radix_tree_insert(struct radix_tree_root
int error;
/* XXX No way to know whether the caller can sleep or not... */
- if ((kludge = kzalloc(sizeof(*kludge), GFP_NOWAIT)) == NULL)
+ if ((kludge = kzalloc(sizeof(*kludge), GFP_ATOMIC)) == NULL)
return -ENOMEM;
kludge->k_key = key;