From patchwork Thu Nov 22 04:08:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 13050 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 821B54C178B for ; Thu, 22 Nov 2012 04:15:02 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1E608A189B5 for ; Thu, 22 Nov 2012 04:15:02 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so48424ieb.11 for ; Wed, 21 Nov 2012 20:15:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=sYNa1IoMn8//Q3bgXy45ldQ3FpLIrtKiLP6YpHRqgZU=; b=Xp0rNTarEhfE+lLTDhHZj+TCS7MACR7Z2r3ir7R3ELrri+ir2zjPDo64NHLsvqclsC L5NI57JwaJ3woq/+3LkCN+tbRPKkOStGKAIpPIKFhQBDDS4TBHrW4vkvTyuZeL7stMxx 3LkE+vGetgWkpvDONfRC4SlN26aMJPJI6SzMe7o2HMU4lS398vIMCLbIA/h6cDeJe+Fl xD3mS10ztm2ZOV2/uuNPulhkqKODsRTrlUzCJw3VxDjwH1knDjLPrCpy10v7KZgLvDqw m7FsjXGXR37DEdYxFSXse8k+dxWHuPD9iGhmVk78FpR0oI0/bljmyzNO/UYrsEQlg6av +kDw== Received: by 10.50.152.137 with SMTP id uy9mr1750381igb.62.1353557701919; Wed, 21 Nov 2012 20:15:01 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp147846igt; Wed, 21 Nov 2012 20:15:01 -0800 (PST) Received: by 10.68.136.9 with SMTP id pw9mr582308pbb.155.1353557701256; Wed, 21 Nov 2012 20:15:01 -0800 (PST) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by mx.google.com with ESMTPS id yk3si3410014pbc.9.2012.11.21.20.15.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 20:15:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.51 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.51; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.51 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pb0-f51.google.com with SMTP id ro12so3205317pbb.38 for ; Wed, 21 Nov 2012 20:15:00 -0800 (PST) Received: by 10.66.73.102 with SMTP id k6mr23490375pav.22.1353557700691; Wed, 21 Nov 2012 20:15:00 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id s7sm1164602paz.7.2012.11.21.20.14.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 20:14:59 -0800 (PST) From: Tushar Behera 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 Message-Id: <1353557322-25353-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353557322-25353-1-git-send-email-tushar.behera@linaro.org> References: <1353557322-25353-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQkfQVuQz36/byaewtBluXM3tkbNXJ437tFsZYpUTVp95919KEy/w16KAnmN0LDoBY4Icko5 Fixes following warning. sound/soc/codecs/wm8510.c:614:1-6: WARNING: invalid free of devm_ allocated data Signed-off-by: Tushar Behera --- 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; }