Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec103964 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: nau8810: Fix memory leak in nau8810_eq_put error path



Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 78822e36
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}
	}