In the Linux kernel, the following vulnerability has been resolved: regulator: raa215300: Fix resource leak in case of error The clkregisterclkdev() allocates memory by calling vclkdevalloc() and this memory is not freed in the error path. Similarly, resources allocated by clkregisterfixedrate() are not freed in the error path. Fix these issues by using devmclkhwregisterfixedrate() and devmclkhwregisterclkdev(). After this, the static variable clk is not needed. Replace it with local variable hw in probe() and drop calling clkunregisterfixedrate() from raa215300rtcunregister_device().