aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/lib/test_modules_helpers.c
diff options
context:
space:
mode:
authorKuan-Wei Chiu <[email protected]>2023-12-11 01:19:07 +0800
committerAbel Vesa <[email protected]>2023-12-20 11:32:18 +0200
commit21c0efbcb45cf94724d17b040ebc03fcd4a81f22 (patch)
tree8dc6f4c3c1bf8c2570af5d6e337198826bc8589a /arch/s390/lib/test_modules_helpers.c
parent144f1b70ea9ebebd21390bfcc78ba3192f12b0c1 (diff)
clk: imx: scu: Fix memory leak in __imx_clk_gpr_scu()
In cases where imx_clk_is_resource_owned() returns false, the code path does not handle the failure gracefully, potentially leading to a memory leak. This fix ensures proper cleanup by freeing the allocated memory for 'clk_node' before returning. Signed-off-by: Kuan-Wei Chiu <[email protected]> Reviewed-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Abel Vesa <[email protected]>
Diffstat (limited to 'arch/s390/lib/test_modules_helpers.c')
0 files changed, 0 insertions, 0 deletions