]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/configfs: Free ctx_restore_mid_bb in release
authorShuicheng Lin <shuicheng.lin@intel.com>
Wed, 25 Feb 2026 01:34:49 +0000 (01:34 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 26 Feb 2026 22:13:27 +0000 (14:13 -0800)
commita235e7d0098337c3f2d1e8f3610c719a589e115f
treea06d9d9c13a452d93ff61bdbfcfa1194277b8cb4
parent9941b3ca10977a583a6e78707023066fd9cd6311
drm/xe/configfs: Free ctx_restore_mid_bb in release

ctx_restore_mid_bb memory is allocated in wa_bb_store(), but
xe_config_device_release() only frees ctx_restore_post_bb.

Free ctx_restore_mid_bb[0].cs as well to avoid leaking the allocation
when the configfs device is removed.

Fixes: b30d5de3d40c ("drm/xe/configfs: Add mid context restore bb")
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>
Link: https://patch.msgid.link/20260225013448.3547687-2-shuicheng.lin@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_configfs.c