In the Linux kernel, the following vulnerability has been resolved:
clk: imx93: fix memory leak and missing unwind goto in imx93clocksprobe
In function probe(), it returns directly without unregistered hws when error occurs.
Fix this by adding 'goto unregister_hws;' on line 295 and line 310.
Use devmkzalloc() instead of kzalloc() to automatically free the memory using devmkfree() when error occurs.
Replace ofiomap() with devmofiomap() to automatically handle the unused ioremap region and delete 'iounmap(anatopbase);' in unregister_hws.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54221.json"
}