On 8/12/25 2:29 AM, Daniel Zahka wrote:
+/**
+ * psp_dev_unregister() - unregister PSP device
+ * @psd: PSP device structure
+ */
+void psp_dev_unregister(struct psp_dev *psd)
+{
+ mutex_lock(&psp_devs_lock);
+ mutex_lock(&psd->lock);
+
+ psp_nl_notify_dev(psd, PSP_CMD_DEV_DEL_NTF);
+ xa_store(&psp_devs, psd->id, NULL, GFP_KERNEL);
It's not 110% obvious to me that the above is equivalent to xa_clear(),
given the XA_FLAGS_ALLOC1 init flag. If you have to re-submit, please
consider using xa_clear() instead.
/P