diff mbox

drm/i915/gvt: Fix kmem_cache_create() name

Message ID 20170124201524.10895.88940.stgit@gimli.home (mailing list archive)
State New, archived
Headers show

Commit Message

Alex Williamson Jan. 24, 2017, 8:15 p.m. UTC
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@redhat.com>
---
 drivers/gpu/drm/i915/gvt/execlist.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Zhenyu Wang Jan. 25, 2017, 2:25 a.m. UTC | #1
On 2017.01.24 13:15:43 -0700, Alex Williamson wrote:
> 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@redhat.com>
> ---

Will send to 4.10 fixes. Thanks!

>  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);
> 
> _______________________________________________
> igvt-g-dev mailing list
> igvt-g-dev@lists.01.org
> https://lists.01.org/mailman/listinfo/igvt-g-dev
diff mbox

Patch

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);