Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp673205img; Fri, 22 Mar 2019 06:20:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+k+Daxpmu4MKrh3YDu0vK8vrCUvtTViXCmgbQnygFua0PUYfHpBx23MY2FfQe9b5nNyYw X-Received: by 2002:aa7:8694:: with SMTP id d20mr9028879pfo.81.1553260804299; Fri, 22 Mar 2019 06:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260804; cv=none; d=google.com; s=arc-20160816; b=L7yERqYLA6VS8E6blD/exAQ9JzufVkImBviFzeCtNKaAcFuVHpOrSSDLTG6TlbZ0/7 yQ8QSXXl/8Fy8tb1IARh2CMLT0JHzPECuxHBbOZyR/yMF4lvxGFC9NBRjUGlPZqUsc51 3wXk+0wHFxEebjlKPgHz4L6YLKolE/xvcpJzamANwBzLXfF+HoC34r086sqMpzbXC/XZ Tq2FYudfjFliL51AoylwabJo5U8VrUjsvzy2lstIX+r0uxC4zhW27Ia0jhW8LGC8t4Ha GrFuBTNYr7+92KLkpR6j8GPgxYJtPf26BmbbXmpav7kbgX/G+X4LXuE3NGGxdJJIFb5p eLpw== 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=yjFUQaL6EM7/gOZuLnElOpnu1rgrO6tm89z3CpxBY+s=; b=YEtBTrIINnu4yhmabWfRHFE8js56Kn25UbqxkwdHwnZW2k3nYHr9KKEqEQ4FbP7777 bFtgk27UJ8vD25uJ/vO2JxsR95Hqyy0tmEzbCQShx6dNTJxnWkg7K/ILnFkFzpGYMdFP 4pCQ59m5rl5+5i+Rjxnzq25UpsHjqBtMUJvpRXgmieo0hdOf7tKZuK2snPrm/ei4EYQS lNOW7BUCN2sGdf9/gE9fuZ3fXrYXV0n9kRUdpAJ+rW8HDBpNk/fPVLcEh4xQ4hAI9yEz 3eTv9TLqum79LTS0cV0jzx6dE+Rz4UbagH6TUZYgsyrPt5tm8q9aJnDvG/39yT4xsk8b GGrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sTCsBbrl; 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 h23si6711741pgv.190.2019.03.22.06.19.49; Fri, 22 Mar 2019 06:20:04 -0700 (PDT) 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=sTCsBbrl; 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 S1728928AbfCVLXM (ORCPT + 99 others); Fri, 22 Mar 2019 07:23:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:50032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbfCVLXI (ORCPT ); Fri, 22 Mar 2019 07:23:08 -0400 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 04F3A21916; Fri, 22 Mar 2019 11:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253788; bh=IF4sgJzuwdlljJvOKguTm/CDhsXCb/ArhmaEd23J4fo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sTCsBbrlUWb3FQi2l5dgEOnRIzRMvAHPGorzKTB4l+MMY8rutwRf+i/oFjWnQeuVe 4j058SxkGfvEyfN3ru6KqGUJc2c/VgdDSTR/C27OdRnPHx/yuWprjBVXhaT9jkdKI7 4DGzabak3hv99JfwzxlV72kwMQM7PlNpKog+24o8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peng Hao , Robert Jarzmik , Sasha Levin Subject: [PATCH 3.18 072/134] ARM: pxa: ssp: unneeded to free devm_ allocated data Date: Fri, 22 Mar 2019 12:14:45 +0100 Message-Id: <20190322111215.289681834@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ba16adeb346387eb2d1ada69003588be96f098fa ] devm_ allocated data will be automatically freed. The free of devm_ allocated data is invalid. Fixes: 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") Signed-off-by: Peng Hao [title's prefix changed] Signed-off-by: Robert Jarzmik Signed-off-by: Sasha Levin --- arch/arm/plat-pxa/ssp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index 1f5ee17a10e8..50c051bb9f90 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c @@ -239,8 +239,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) if (ssp == NULL) return -ENODEV; - iounmap(ssp->mmio_base); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(res->start, resource_size(res)); @@ -250,7 +248,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) list_del(&ssp->node); mutex_unlock(&ssp_lock); - kfree(ssp); return 0; } -- 2.19.1