diff options
author | Nitin Gote <nitin.r.gote@intel.com> | 2025-09-11 10:58:23 +0530 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-09-12 12:02:23 -0700 |
commit | d4c3ed963e41d488695cf91068eabb8eb9f538ec (patch) | |
tree | 967d4de1ae78b56ac2097854c32884487707d53f /rust/helpers/mutex.c | |
parent | 2ec29456254822f638bd9673a225ea0eb2245382 (diff) |
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: Nitin Gote <nitin.r.gote@intel.com>
Fixes: c28bfb107dac ("drm/xe/nvm: add on-die non-volatile memory device")
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250911052823.226696-1-nitin.r.gote@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions