]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/drm_ras: Make counter allocation drm managed
authorRaag Jadav <raag.jadav@intel.com>
Tue, 2 Jun 2026 04:48:42 +0000 (10:18 +0530)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 16 Jun 2026 17:18:27 +0000 (10:18 -0700)
commit45fa032b68570a9ccd80328a857ac5872217be92
treea5a1a38bdce1cf1a5d3a02ca0e8a69f0e056361b
parent65280af331aa15eab7012bd7f07823be13754ba2
drm/xe/drm_ras: Make counter allocation drm managed

cleanup_node_param() is not registered for previous node in case of counter
allocation failure, which results in stale memory of previous node that
isn't cleaned up on unwind. Fix this using drm managed allocation, which is
guaranteed to be cleaned up on unwind.

Fixes: b40db12b542f ("drm/xe/xe_drm_ras: Add support for XE DRM RAS")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://patch.msgid.link/20260602044919.702209-3-raag.jadav@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit 58d77c77ea0c5cb2b755ebe23e973c8272acd896)
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
drivers/gpu/drm/xe/xe_drm_ras.c