Skip to content

Commit

Permalink
ASoC: nau8810: Fix memory leak in nau8810_eq_put error path
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
AxelLin authored and broonie committed Sep 1, 2016
1 parent 78822e3 commit ec10396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/nau8810.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ec10396

Please sign in to comment.