• Yi Wang's avatar
    clk: boston: fix possible memory leak in clk_boston_setup() · 46fda5b5
    Yi Wang authored
    Smatch report warnings:
    drivers/clk/imgtec/clk-boston.c:76 clk_boston_setup() warn: possible memory leak of 'onecell'
    drivers/clk/imgtec/clk-boston.c:83 clk_boston_setup() warn: possible memory leak of 'onecell'
    drivers/clk/imgtec/clk-boston.c:90 clk_boston_setup() warn: possible memory leak of 'onecell'
    
    'onecell' is malloced in clk_boston_setup(), but not be freed
    before leaving from the error handling cases.
    Signed-off-by: default avatarYi Wang <wang.yi59@zte.com.cn>
    Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
    46fda5b5
clk-boston.c 2.88 KB