From 43925f44704f439e626f6646fe69b31efe1a3c6d Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 30 Sep 2024 12:09:04 +0000 Subject: [PATCH] store xarray flags for XA_FLAGS_ALLOC1 test in alloc --- sys/dev/pci/drm/drm_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c index f7a7a106e32..b7b26e3e65d 100644 --- a/sys/dev/pci/drm/drm_linux.c +++ b/sys/dev/pci/drm/drm_linux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.c,v 1.117 2024/09/30 08:09:39 mpi Exp $ */ +/* $OpenBSD: drm_linux.c,v 1.118 2024/09/30 12:09:04 jsg Exp $ */ /* * Copyright (c) 2013 Jonathan Gray * Copyright (c) 2015, 2016 Mark Kettenis @@ -987,6 +987,7 @@ xa_init_flags(struct xarray *xa, gfp_t flags) mtx_init(&xa->xa_lock, IPL_TTY); else mtx_init(&xa->xa_lock, IPL_NONE); + xa->xa_flags = flags; } void -- 2.20.1