On Fri, Jun 07, 2019 at 11:10:37AM +0200, Jiri Slaby wrote:
> On 07. 06. 19, 3:52, Gen Zhang wrote:
> > @@ -3491,6 +3492,8 @@ static int clk_core_populate_parent_map(struct
> > clk_core *core)
> > kfree_const(parents[i].name);
> >
On 07. 06. 19, 3:52, Gen Zhang wrote:
> @@ -3491,6 +3492,8 @@ static int clk_core_populate_parent_map(struct
> clk_core *core)
> kfree_const(parents[i].name);
> kfree_const(parents[i].fw_name);
> }
On Thu, Jun 06, 2019 at 01:16:45PM -0700, Stephen Boyd wrote:
> Quoting Gen Zhang (2019-06-05 09:00:43)
> > On Wed, Jun 05, 2019 at 08:38:00AM +0200, Jiri Slaby wrote:
> > > On 31. 05. 19, 3:14, Gen Zhang wrote:
> > > > In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and
> > > >
Quoting Gen Zhang (2019-06-05 09:00:43)
> On Wed, Jun 05, 2019 at 08:38:00AM +0200, Jiri Slaby wrote:
> > On 31. 05. 19, 3:14, Gen Zhang wrote:
> > > In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and
> > > 'dst' are allcoted by kstrdup_const(). According to doc: "Strings
> > >
On Wed, Jun 05, 2019 at 08:38:00AM +0200, Jiri Slaby wrote:
> On 31. 05. 19, 3:14, Gen Zhang wrote:
> > In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and
> > 'dst' are allcoted by kstrdup_const(). According to doc: "Strings
> > allocated by kstrdup_const should be freed by
On 31. 05. 19, 3:14, Gen Zhang wrote:
> In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and
> 'dst' are allcoted by kstrdup_const(). According to doc: "Strings
> allocated by kstrdup_const should be freed by kfree_const". So
> 'parent->name', 'parent->fw_name' and 'dst' should
In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and
'dst' are allcoted by kstrdup_const(). According to doc: "Strings
allocated by kstrdup_const should be freed by kfree_const". So
'parent->name', 'parent->fw_name' and 'dst' should be freed.
Signed-off-by: Gen Zhang
---
diff
In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and
'dst' are allcoted by kstrdup_const(). According to doc: "Strings
allocated by kstrdup_const should be freed by kfree_const". So
'parent->name', 'parent->fw_name' and 'dst' should be freed.
Signed-off-by: Gen Zhang
---
diff
8 matches
Mail list logo