From: Sudip Mukherjee Date: Mon, 23 Nov 2015 11:08:48 +0000 (+0530) Subject: ASoC: Intel: Skylake: fix memory leak X-Git-Tag: v4.14-rc1~4199^2~9^2~2^6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87b5ed8ecb9fe05a696e1c0b53c7a49ea66432c1;p=platform%2Fkernel%2Flinux-rpi.git ASoC: Intel: Skylake: fix memory leak We have requested the firmware but missed releasing it. Signed-off-by: Sudip Mukherjee Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index a7854c8..ffea427 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;