mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] fix memory leak and unregister issue in clk_boston_setup()
@ 2018-10-31  7:41 Yi Wang
  2018-10-31  7:41 ` [PATCH v3 1/2] clk: boston: fix possible memory leak " Yi Wang
  2018-10-31  7:41 ` [PATCH v3 2/2] clk: boston: unregister clks on failure " Yi Wang
  0 siblings, 2 replies; 5+ messages in thread
From: Yi Wang @ 2018-10-31  7:41 UTC (permalink / raw)
  To: paul.burton, sboyd
  Cc: mturquette, linux-mips, linux-clk, linux-kernel, zhong.weidong, Yi Wang

This fix two issues in clk_boston_setup() function:
- possible memory leak of 'onecell'
- registered clks not unregister when error happens

Changes from v2:
- include smatch to the commit
- unregister clks which registered before going out

Yi Wang (2):
  clk: boston: fix possible memory leak in clk_boston_setup()
  clk: boston: unregister clks on failure in clk_boston_setup()

 drivers/clk/imgtec/clk-boston.c | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

-- 
1.8.3.1


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

end of thread, other threads:[~2018-11-08 18:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31  7:41 [PATCH v3 0/2] fix memory leak and unregister issue in clk_boston_setup() Yi Wang
2018-10-31  7:41 ` [PATCH v3 1/2] clk: boston: fix possible memory leak " Yi Wang
2018-11-08 18:19   ` Stephen Boyd
2018-10-31  7:41 ` [PATCH v3 2/2] clk: boston: unregister clks on failure " Yi Wang
2018-11-08 18:19   ` Stephen Boyd

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

all inboxes | Powered by JetHome®