mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 15:40:50 +00:00
ASoC: nau8810: Fix memory leak in nau8810_eq_put error path
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
78822e36dc
commit
ec10396477
@ -221,6 +221,7 @@ static int nau8810_eq_put(struct snd_kcontrol *kcontrol,
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n",
|
dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n",
|
||||||
reg + i, ret);
|
reg + i, ret);
|
||||||
|
kfree(data);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user