]> Git Repo - J-linux.git/commitdiff
drm/i915: Fix memory leak by correcting cache object name in error handler
authorJiasheng Jiang <[email protected]>
Wed, 27 Nov 2024 20:10:42 +0000 (20:10 +0000)
committerTvrtko Ursulin <[email protected]>
Mon, 9 Dec 2024 10:29:06 +0000 (10:29 +0000)
Replace "slab_priorities" with "slab_dependencies" in the error handler
to avoid memory leak.

Fixes: 32eb6bcfdda9 ("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 9bc5e7dc694d3112bbf0fa4c46ef0fa0f114937a)
Signed-off-by: Tvrtko Ursulin <[email protected]>
drivers/gpu/drm/i915/i915_scheduler.c

index 762127dd56c5387e807e51bd5835869ac5e8a19e..70a854557e6ec500036a907c667734494e609c1e 100644 (file)
@@ -506,6 +506,6 @@ int __init i915_scheduler_module_init(void)
        return 0;
 
 err_priorities:
-       kmem_cache_destroy(slab_priorities);
+       kmem_cache_destroy(slab_dependencies);
        return -ENOMEM;
 }
This page took 0.067479 seconds and 4 git commands to generate.