Re: [PATCH] soc: fsl: cpm1: tsa: Fix clock leak in tsa_of_parse_tdms()
From: Christophe Leroy (CS GROUP)
Date: Fri Oct 09 2026 - 05:25:04 EST
Le 18/09/2026 à 10:39, Christophe Leroy (CS GROUP) a écrit :
On Thu, 17 Sep 2026 15:27:19 +0000, Wentao Liang wrote:
The error cleanup loop puts l1rsync_clk and l1rclk_clk a second time
and never puts l1tsync_clk or l1tclk_clk, because the branches that
guard the transmit clocks use the receive clock field names.
Use the matching field in each branch so every clock acquired by
tsa_of_parse_tdms() is released exactly once.
[...]
Applied, thanks!
[1/1] soc: fsl: cpm1: tsa: Fix clock leak in tsa_of_parse_tdms()
commit: 7b3b0598c00e67f2df85d0b4cd99eaa3be6c9bfd
Best regards,
For your information, I folded in this patch a similar fix to tsa_remove() function.
Christophe