In the Linux kernel, the following vulnerability has been resolved: clk: imx: clk-imx8mp: improve error handling in imx8mpclocksprobe() Replace ofiomap() and kzalloc() with devmofiomap() and devmkzalloc() which can automatically release the related memory when the device or driver is removed or unloaded to avoid potential memory leak. In this case, iounmap(anatopbase) in line 427,433 are removed as manual release is not required. Besides, referring to clk-imx8mq.c, check the return code of ofclkaddhw_provider, if it returns negtive, print error info and unregister hws, which makes the program more robust.