Skip to content

Commit

Permalink
ASoC: Intel: Skylake: fix memory leak
Browse files Browse the repository at this point in the history
We have requested the firmware but missed releasing it.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
sudipm-mukherjee authored and broonie committed Nov 23, 2015
1 parent 4b6295b commit 87b5ed8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/intel/skylake/skl-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ int skl_tplg_init(struct snd_soc_platform *platform, struct hdac_ext_bus *ebus)
*/
ret = snd_soc_tplg_component_load(&platform->component,
&skl_tplg_ops, fw, 0);
release_firmware(fw);
if (ret < 0) {
dev_err(bus->dev, "tplg component load failed%d\n", ret);
return -EINVAL;
Expand Down

0 comments on commit 87b5ed8

Please sign in to comment.