In the Linux kernel, the following vulnerability has been resolved:
firmware: armscmi: Fix the double free in scmidebugfscommonsetup()
Clang static checker(scan-build) throws below warning: | drivers/firmware/arm_scmi/driver.c:line 2915, column 2 | Attempt to free released memory.
When devmaddactionorreset() fails, scmidebugfscommon_cleanup() will run twice which causes double free of 'dbg->name'.
Remove the redundant scmidebugfscommon_cleanup() to fix this problem.