In the Linux kernel, the following vulnerability has been resolved: misc: ocxl: fix possible double free in ocxl_file_register_afu info_release() will be called in device_unregister() when info->dev's reference count is 0. So there is no need to call ocxl_afu_put() and kfree() again. Fix this by adding free_minor() and return to err_unregister error path.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2025022600-CVE-2022-49455-a338@gregkh/T