clk: versatile: free icst on error return
Subsystems (2)
PATCH 1/1 clk: versatile: free icst on error return
From: Colin Ian King <[email protected]>
commit a183da63 introduced a new error return path that does not kfree icst if the kmemdup of desc->params fails.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/clk/versatile/clk-icst.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/versatile/clk-icst.c +1 -0
@@ -140,6 +140,7 @@ struct clk *icst_clk_register(struct device *dev, pclone =kmemdup (desc->params,sizeof (*pclone),GFP_KERNEL );if (!pclone) { +kfree (icst);pr_err ("could not clone ICST params\n" );return ERR_PTR (-ENOMEM ); }
Signature · 1 line
1.9.1
Quoted 6 lines · Colin King
From: Colin Ian King <[email protected]>
commit
a183da63introduced a new error return path that does not kfree icst if the kmemdup ofdesc->paramsfails.Signed-off-by Colin Ian King <[email protected]>
Acked-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Mike Turquette
AppliedQuoting Colin King (2014-04-12 10:59:14)
Quoted 6 lines
From: Colin Ian King <[email protected]>
commit
a183da63introduced a new error return path that does not kfree icst if the kmemdup ofdesc->paramsfails.Signed-off-by Colin Ian King <[email protected]>
Applied to clk-next.
Thanks,
Mike
Quoted 19 lines
--- drivers/clk/versatile/clk-icst.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/versatile/clk-icst.c +1
-0@@ -140,6 +140,7 @@ struct clk *icst_clk_register(struct device *dev, pclone =kmemdup (desc->params,sizeof (*pclone),GFP_KERNEL );if (!pclone) { +kfree (icst);pr_err ("could not clone ICST params\n" );return ERR_PTR (-ENOMEM ); }Signature · 1 line
1.9.1