]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/drm_ras: Add per node cleanup action
authorRaag Jadav <raag.jadav@intel.com>
Tue, 2 Jun 2026 04:48:43 +0000 (10:18 +0530)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 16 Jun 2026 17:18:29 +0000 (10:18 -0700)
commit042f1d5f20d63fb9b0e2fbba97648d16fe1a845d
tree30cea5bc5867c58e8442a9de15b3699bfa13f993
parent45fa032b68570a9ccd80328a857ac5872217be92
drm/xe/drm_ras: Add per node cleanup action

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. Add per node cleanup action which guarantees
cleanup on unwind and also simplifies the cleanup logic.

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-4-raag.jadav@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit 67fc5543d8274b2fcbef87734fad0469358f4478)
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
drivers/gpu/drm/xe/xe_drm_ras.c