In the Linux kernel, the following vulnerability has been resolved: rtc: amlogic-a4: fix double free caused by devm The clock obtained via devmclkgetenabled() is automatically managed by devres and will be disabled and freed on driver detach. Manually calling clkdisableunprepare() in error path and remove function causes double free. Remove the redundant clkdisableunprepare() calls from the probe error path and amlrtc_remove(), allowing the devm framework to automatically manage the clock lifecycle.