lkml.org 
[lkml]   [2018]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] fix memory leak and unregister issue in clk_boston_setup()
Date
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

\
 
 \ /
  Last update: 2018-10-31 08:40    [W:1.353 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site