[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170124201524.10895.88940.stgit@gimli.home>
Date: Tue, 24 Jan 2017 13:15:43 -0700
From: Alex Williamson <alex.williamson@...hat.com>
To: zhi.a.wang@...el.com, zhenyuw@...ux.intel.com
Cc: jani.nikula@...ux.intel.com, jike.song@...el.com, airlied@...ux.ie,
intel-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, igvt-g-dev@...1.01.org,
daniel.vetter@...el.com
Subject: [PATCH] drm/i915/gvt: Fix kmem_cache_create() name
According to kmem_cache_sanity_check(), spaces are not allowed in the
name of a cache and results in a kernel oops with CONFIG_DEBUG_VM.
Convert to underscores.
Signed-off-by: Alex Williamson <alex.williamson@...hat.com>
---
drivers/gpu/drm/i915/gvt/execlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c
index f32bb6f..d03b229 100644
--- a/drivers/gpu/drm/i915/gvt/execlist.c
+++ b/drivers/gpu/drm/i915/gvt/execlist.c
@@ -826,7 +826,7 @@ int intel_vgpu_init_execlist(struct intel_vgpu *vgpu)
INIT_LIST_HEAD(&vgpu->workload_q_head[i]);
}
- vgpu->workloads = kmem_cache_create("gvt-g vgpu workload",
+ vgpu->workloads = kmem_cache_create("gvt-g_vgpu_workload",
sizeof(struct intel_vgpu_workload), 0,
SLAB_HWCACHE_ALIGN,
NULL);
Powered by blists - more mailing lists