diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-07-23 05:53:52 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-08-03 07:46:07 +0100 |
commit | 4eaac50552395f693b8c428872e8b5311c3dab60 (patch) | |
tree | a3211849d447486cdd2051890b12ab3c1fea3d1b /sound/soc/codecs/wm8978.c | |
parent | 6b5d071e8ba7d802f3123e7b7a37ea13650a98bf (diff) | |
download | lwn-4eaac50552395f693b8c428872e8b5311c3dab60.tar.gz lwn-4eaac50552395f693b8c428872e8b5311c3dab60.zip |
ASoC: wm8974: fix a memory leak if another WM8974 is registered
wm8974 is allocated in wm8974_i2c_probe() but is not freed if wm8974_register()
return -EINVAL (if another WM8974 is registered).
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8978.c')
0 files changed, 0 insertions, 0 deletions