Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp464785ybl; Tue, 28 Jan 2020 06:23:19 -0800 (PST) X-Google-Smtp-Source: APXvYqymA+YT96Z0ZfUnkjL6AEwHS6FItugnZJ/mLRvV9fpKjtEDi38XoVslkemSl+Lf3ESa5Swv X-Received: by 2002:a54:468b:: with SMTP id k11mr2832376oic.134.1580221399262; Tue, 28 Jan 2020 06:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221399; cv=none; d=google.com; s=arc-20160816; b=s0Xcrhq3xl1qZY/qXT/Lfz8x+5yinZDvKF5rlqFBYT06KrDh6+q5WqNvc7/pU9Qi/Z 4zyJrYhXBPGOQW8TIlRkn58np3Bnrdi34zUqwfgW0UyCEhLBShY7kDV+bH3hkBXT4Jw5 DfByii+iCvx8qwOpVe/ThF137flHoAnXolP0d38af/895C/GgAP9x+6QX3a1uvmFoeIE VD8SJ+GveN+uatVs4FvxEqq2uP9DFn1Piqzj9/btkTnWiV2y3nAxCSbIW0hes7vvDDCG V5M86kIOqcyk9dyHb+/LvfUB+XrMPjrZ1ztB5IYUvu2zQlGuEbfET29MxWmfkoTJZorL jkew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Zr2t0/CS6uv5HAi41JCVzmumh9xALrOhOLsi7j1eghs=; b=HVdZXuf4uVvSqHSHp2TxU+0HL4qkCvZqE3XktuY/xF7GIV1gSQsQS/NSrhqEQHOur2 Wdkt3k6yLHwZ0i8Q/9Ra1Qr5vIIY23SF5YjHd9jLROOYZMMFDkIvnjBE2Gt/l17/igXP uTDinJWEzVbOJGPZ9BwULJ05sksIDBhqV3lufBJExjoXdjnokZSv7+0WsnvjIvyamt77 SQqCxFnxHWz3HE+Ch8/rvIfD+rRCt0+0lfrfDn1hwOGVFNzpMkLxcKVDPPgqIr/AYkPo +vIAhGnydkDUaEoE6bB2lpjG9By7AInlQToX5hGl5Ax9D1UbJLbEKJJuzAfmrBpo5PR2 7c/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wbMAICB/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si8963342oti.306.2020.01.28.06.23.07; Tue, 28 Jan 2020 06:23:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wbMAICB/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731179AbgA1OU7 (ORCPT + 99 others); Tue, 28 Jan 2020 09:20:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:46044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731162AbgA1OU4 (ORCPT ); Tue, 28 Jan 2020 09:20:56 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AFE7821739; Tue, 28 Jan 2020 14:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221256; bh=dfvrLCjUuNwlPrEBLjqxka2nipU725v7isZIiKzbVn0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wbMAICB/scYzExCppyvu1HcfmL4NzvSAlti5srVCWv7sVNgs1SVekykQBOAp36D3S TWONJBIyOGQzRO5sqd5RXbZNHqM8DqaAmCsCXWvgckdKnaZ9S08iVfJHusnOKxLj6R LFLeySy1q/wiZZBS1Zz+7rwLZ6Lm6MwhKP7laDlA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Robert Jarzmik , Sasha Levin Subject: [PATCH 4.9 115/271] ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data" Date: Tue, 28 Jan 2020 15:04:24 +0100 Message-Id: <20200128135901.136665929@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 9ee8578d953023cc57e7e736ae48502c707c0210 ] Since commit 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") kfree, iounmap, clk_put etc are not needed anymore in remove path. Fixes: 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") Signed-off-by: YueHaibing [ commit message spelling fix ] Signed-off-by: Robert Jarzmik Signed-off-by: Sasha Levin --- arch/arm/plat-pxa/ssp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index b92673efffffb..97bd43c16cd87 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c @@ -230,18 +230,12 @@ static int pxa_ssp_probe(struct platform_device *pdev) static int pxa_ssp_remove(struct platform_device *pdev) { - struct resource *res; struct ssp_device *ssp; ssp = platform_get_drvdata(pdev); if (ssp == NULL) return -ENODEV; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - release_mem_region(res->start, resource_size(res)); - - clk_put(ssp->clk); - mutex_lock(&ssp_lock); list_del(&ssp->node); mutex_unlock(&ssp_lock); -- 2.20.1