Re: Re: [PATCH] ASoC: intel: Fix memleak in sst_media_open

2020-08-13 Thread dinghao . liu
> > On 8/9/20 3:56 AM, Dinghao Liu wrote: > > When power_up_sst() fails, stream needs to be freed > > just like when try_module_get() fails. However, current > > code is returning directly and ends up leaking memory. > > > > Fixes: 0121327c1a68b ("ASoC: Intel: mfld-pcm: add control for powering

Re: [PATCH] ASoC: intel: Fix memleak in sst_media_open

2020-08-10 Thread Pierre-Louis Bossart
On 8/9/20 3:56 AM, Dinghao Liu wrote: When power_up_sst() fails, stream needs to be freed just like when try_module_get() fails. However, current code is returning directly and ends up leaking memory. Fixes: 0121327c1a68b ("ASoC: Intel: mfld-pcm: add control for powering up/down dsp")

[PATCH] ASoC: intel: Fix memleak in sst_media_open

2020-08-09 Thread Dinghao Liu
When power_up_sst() fails, stream needs to be freed just like when try_module_get() fails. However, current code is returning directly and ends up leaking memory. Fixes: 0121327c1a68b ("ASoC: Intel: mfld-pcm: add control for powering up/down dsp") Signed-off-by: Dinghao Liu ---