Skip to content

Commit 2828e58

Browse files
Jiasheng Jiangtursulin
authored andcommitted
drm/i915: Fix memory leak by correcting cache object name in error handler
Replace "slab_priorities" with "slab_dependencies" in the error handler to avoid memory leak. Fixes: 32eb6bc ("drm/i915: Make request allocation caches global") Cc: <[email protected]> # v5.2+ Signed-off-by: Jiasheng Jiang <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 9bc5e7d) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent da0b986 commit 2828e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_scheduler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,6 @@ int __init i915_scheduler_module_init(void)
506506
return 0;
507507

508508
err_priorities:
509-
kmem_cache_destroy(slab_priorities);
509+
kmem_cache_destroy(slab_dependencies);
510510
return -ENOMEM;
511511
}

0 commit comments

Comments
 (0)