Skip to contentSkip to conversation

ASoC: nau8810: Fix memory leak in nau8810_eq_put error path

PATCH New Axel Lin 1 participant 1 message Aug 25, 2016

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: nau8810: Fix memory leak in nau8810_eq_put error path

---
 sound/soc/codecs/nau8810.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/nau8810.c +1 -0
index f9bcdc3..e455186 100644
@@ -221,6 +221,7 @@ static int nau8810_eq_put(struct snd_kcontrol *kcontrol,
 		if (ret) {
 			dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n",
 				reg + i, ret);
+			kfree(data);
 			return ret;
 		}
 	}
Signature · 1 line
2.7.4