Skip to content

[SQUASHME]ASoC: sof: topology: fix memleak when errror happen#40

Merged
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
xiulipan:kwfix
Jul 21, 2018
Merged

[SQUASHME]ASoC: sof: topology: fix memleak when errror happen#40
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
xiulipan:kwfix

Conversation

@xiulipan

Copy link
Copy Markdown

Add kfree function when other error happens.

Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com

Add kfree function when other error happens.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>

@plbossart plbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good but I would like Ranjani @ranj063 to chime in since it will impact her suspend/resume work.

@ranj063

ranj063 commented Jul 20, 2018

Copy link
Copy Markdown
Collaborator

@plbossart @xiulipan this looks good.

One thing to add is freeing scontrol in control_unload too.

@xiulipan

Copy link
Copy Markdown
Author

@ranj063 @plbossart
will update this after ranjani's patch mereged. code scan may find more error after that.

@plbossart

Copy link
Copy Markdown
Member

@ranj063 do you have any issues if we take this first if there are no blatant conflicts? I prefer to squash issues first rather than keep old bugs alive.

@ranj063

ranj063 commented Jul 20, 2018

Copy link
Copy Markdown
Collaborator

@plbossart yes, please go ahead. This looks good. It will not affect my work.

@plbossart plbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgirdwood probably need to apply/squash this patch for upstream as well.

@plbossart
plbossart merged commit 9fc79c4 into thesofproject:topic/sof-dev Jul 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants