public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] clk: st: clkgen-pll: Add cleanup in clkgen_c32_pll_setup() and clkgen_odf_register()
@ 2026-01-16 11:38 Haoxiang Li
  2026-01-16 11:38 ` [PATCH 1/7] clk: st: clkgen-pll: Fix a memory leak in clkgen_odf_register() Haoxiang Li
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Haoxiang Li @ 2026-01-16 11:38 UTC (permalink / raw)
  To: mturquette, sboyd, bmasney; +Cc: linux-clk, linux-kernel, Haoxiang Li

Patch 1 fixes a memory leak in clkgen_odf_register()
Patches 2 to 7 improve the cleanup process for function errors:
  - release the memory allocated by clkgen_get_register_base()
  - release the memory allocated by clkgen_pll_register()
  - release the memory allocated by clkgen_odf_register()
and removed unnecessary handling.

These works are carried out under the guidance of Brian Masney.
Thanks, Brian!

Haoxiang Li (7):
  clk: st: clkgen-pll: Fix a memory leak in clkgen_odf_register()
  clk: st: clkgen-pll: Rename some variables in clkgen_c32_pll_setup()
  clk: st: clkgen-pll: Rename some variables in clkgen_c32_pll_setup()
  clk: st: clkgen-pll: Add iounmap() in clkgen_c32_pll_setup()
  clk: st: clkgen-pll: Add clk_unregister for pll_clk in
    clkgen_c32_pll_setup()
  clk: st: clkgen-pll: Remove redundant kfree() in
    clkgen_c32_pll_setup()
  clk: st: clkgen-pll: Add clk_unregister for odf_clk in
    clkgen_c32_pll_setup()

 drivers/clk/st/clkgen-pll.c | 53 +++++++++++++++++++++++++------------
 1 file changed, 36 insertions(+), 17 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2026-01-17 13:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 11:38 [PATCH 0/7] clk: st: clkgen-pll: Add cleanup in clkgen_c32_pll_setup() and clkgen_odf_register() Haoxiang Li
2026-01-16 11:38 ` [PATCH 1/7] clk: st: clkgen-pll: Fix a memory leak in clkgen_odf_register() Haoxiang Li
2026-01-16 15:29   ` Brian Masney
2026-01-17 10:15   ` Markus Elfring
2026-01-16 11:38 ` [PATCH 2/7] clk: st: clkgen-pll: Rename some variables in clkgen_c32_pll_setup() Haoxiang Li
2026-01-16 15:32   ` Brian Masney
2026-01-17 10:40   ` Markus Elfring
2026-01-16 11:38 ` [PATCH 3/7] " Haoxiang Li
2026-01-16 15:37   ` Brian Masney
2026-01-17 10:47   ` Markus Elfring
2026-01-16 11:38 ` [PATCH 4/7] clk: st: clkgen-pll: Add iounmap() " Haoxiang Li
2026-01-16 15:40   ` Brian Masney
2026-01-17 12:57   ` Markus Elfring
2026-01-16 11:38 ` [PATCH 5/7] clk: st: clkgen-pll: Add clk_unregister for pll_clk " Haoxiang Li
2026-01-16 15:43   ` Brian Masney
2026-01-16 11:38 ` [PATCH 6/7] clk: st: clkgen-pll: Remove redundant kfree() " Haoxiang Li
2026-01-16 15:45   ` Brian Masney
2026-01-16 11:38 ` [PATCH 7/7] clk: st: clkgen-pll: Add clk_unregister for odf_clk " Haoxiang Li
2026-01-16 15:53   ` Brian Masney
2026-01-17 13:43   ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox