From: Tushar Behera <tushar.behera@linaro.org>
To: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
patches@opensource.wolfsonmicro.com
Cc: broonie@opensource.wolfsonmicro.com, patches@linaro.org
Subject: [PATCH 01/10] ASoC: wm8510: remove invalid free of devm_ allocated data
Date: Thu, 22 Nov 2012 09:38:33 +0530 [thread overview]
Message-ID: <1353557322-25353-2-git-send-email-tushar.behera@linaro.org> (raw)
In-Reply-To: <1353557322-25353-1-git-send-email-tushar.behera@linaro.org>
Fixes following warning.
sound/soc/codecs/wm8510.c:614:1-6: WARNING: invalid free of devm_ allocated data
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
sound/soc/codecs/wm8510.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index c12a54e..923e7e1 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -608,10 +608,7 @@ static int wm8510_probe(struct snd_soc_codec *codec)
/* power down chip */
static int wm8510_remove(struct snd_soc_codec *codec)
{
- struct wm8510_priv *wm8510 = snd_soc_codec_get_drvdata(codec);
-
wm8510_set_bias_level(codec, SND_SOC_BIAS_OFF);
- kfree(wm8510);
return 0;
}
--
1.7.4.1
next prev parent reply other threads:[~2012-11-22 19:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 4:08 [PATCH 00/10] ASoC: codec: devm_ related modifications Tushar Behera
2012-11-22 4:08 ` Tushar Behera [this message]
2012-11-22 4:08 ` [PATCH 02/10] ASoC: wm8753: remove invalid free of devm_ allocated data Tushar Behera
2012-11-22 4:08 ` [PATCH 03/10] ASoC: wm8995: Convert to use devm_kzalloc() Tushar Behera
2012-11-22 4:08 ` [PATCH 04/10] ASoC: ak4104: Convert to use devm_regmap_init_spi() Tushar Behera
2012-11-22 4:08 ` [PATCH 05/10] ASoC: wm8741: Convert to use devm_regmap_init_{spi,i2c}() Tushar Behera
2012-11-22 4:08 ` [PATCH 06/10] ASoC: wm8753: " Tushar Behera
2012-11-22 4:08 ` [PATCH 07/10] ASoC: wm8804: " Tushar Behera
2012-11-22 4:08 ` [PATCH 08/10] ASoC: wm8985: " Tushar Behera
2012-11-22 4:08 ` [PATCH 09/10] ASoC: wm8988: " Tushar Behera
2012-11-22 4:08 ` [PATCH 10/10] ASoC: wm8995: " Tushar Behera
2012-11-23 14:37 ` [PATCH 00/10] ASoC: codec: devm_ related modifications Mark Brown
2012-11-26 3:24 ` Tushar Behera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1353557322-25353-2-git-send-email-tushar.behera@linaro.org \
--to=tushar.behera@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@linaro.org \
--cc=patches@opensource.wolfsonmicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®