diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-11-23 12:08:48 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-23 12:29:12 +0100 |
commit | 87b5ed8ecb9fe05a696e1c0b53c7a49ea66432c1 (patch) | |
tree | c3dce42bfba51b4d06dd439af81bc0f5e5077328 /sound | |
parent | ASoC: Intel: Skylake: Add I2C depends for SKL machine (diff) | |
download | linux-87b5ed8ecb9fe05a696e1c0b53c7a49ea66432c1.tar.xz linux-87b5ed8ecb9fe05a696e1c0b53c7a49ea66432c1.zip |
ASoC: Intel: Skylake: fix memory leak
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/intel/skylake/skl-topology.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index a7854c8fc523..ffea427aeca8 100644 --- a/sound/soc/intel/skylake/skl-topology.c +++ b/sound/soc/intel/skylake/skl-topology.c @@ -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; |