Commit d4c3ed96 authored by Nitin Gote's avatar Nitin Gote Committed by Lucas De Marchi
Browse files

drm/xe: defer free of NVM auxiliary container to device release callback



Do not kfree the intel_dg_nvm_dev in xe_nvm_fini() right after
auxiliary_device_delete/uninit. The auxiliary_device embeds the
device/kobject (and its name); freeing it too early can race
with asynchronous device_del/udev processing and cause a use-after-free.

Signed-off-by: default avatarNitin Gote <nitin.r.gote@intel.com>
Fixes: c28bfb10 ("drm/xe/nvm: add on-die non-volatile memory device")
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250911052823.226696-1-nitin.r.gote@intel.com


Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 2ec29456
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment