Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp3469182lkm; Tue, 21 Sep 2021 16:54:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYxIGsBxUkA43AUTrZE7SdWSxySVhPZyhIQR2JW0BoEGKOwWPMj1g72Y+gzCgJpUw+sALr X-Received: by 2002:aa7:dbd2:: with SMTP id v18mr39367022edt.315.1632268448118; Tue, 21 Sep 2021 16:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632268448; cv=none; d=google.com; s=arc-20160816; b=F4Qlb1uoMukUGOC3a/WO5LHPRpLIuoQQRG7+PdCpRUIIL4DM96L7N15FKYEiyqRpOt I0cRTwTXP0LMN4miUbHuaxxFAFrKLf/VT69S4/06sqDYoaRG9b1dShOu4/n0A1l29IsV W2fz6jEn0sYzy8LLXfKKA5DgIo0pNUIn1oymJjJqvq59/E+EezBo2t2S9DbOLPHFE//S iXBmv53NnCqfrM23lICES0AGJqYm4l1Oh12cO43JZX2nMSIYYGWH1GczHQFZYb6awWHi Pim6SfTZ5flr93uog5Nn6YZICJNyvWYgSpWEnF7hAmKhWgy2cTIGt1gIqpq6a59zTyex nWnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=KCKizptLFMjHA5dtDlVFNnRhSCGCN75UYLgKNymqUQQ=; b=0rBQ3Ifix7NNqwJ2jwb2B9tRMGLuntHXKlaTv8JrKkp3erPFGBrJxkUF4o8MlDx6x5 U7SDAO4Z2kr6qv1MtHAZ6LCy1bAeCNosf8rbdyv4q1BJ1qtTcOVjnk/Fet6RoXgMbFfm A2KSy88GfGTNEzZXmH7SY+0UlOZSKLvQwG/WdJ0ZvuxrNr1T2WN+PcC92LnUgZ5Owvef KR3KhEqxCOTuBXORnQfmq2cKUNWrk9QaGdVobiCdCbIX1JXPU4pAeo+hej8DFTG5JJqN dxVCfi4iISkKY1y5V+sw+PbV5XBCHcGRqiEYt21x7P3t6a8wN8S8D04QCGVbyXRrYW7W qLcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si609500edj.433.2021.09.21.16.53.23; Tue, 21 Sep 2021 16:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234998AbhIUV05 (ORCPT + 99 others); Tue, 21 Sep 2021 17:26:57 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:45254 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbhIUV04 (ORCPT ); Tue, 21 Sep 2021 17:26:56 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 583451C0B7C; Tue, 21 Sep 2021 23:25:26 +0200 (CEST) Date: Tue, 21 Sep 2021 23:25:26 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Christophe JAILLET , Bartosz Golaszewski , Sasha Levin Subject: Re: [PATCH 5.10 100/122] gpio: mpc8xxx: Fix a potential double iounmap call in mpc8xxx_probe() Message-ID: <20210921212526.GA28467@duo.ucw.cz> References: <20210920163915.757887582@linuxfoundation.org> <20210920163919.067590477@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20210920163919.067590477@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit 7d6588931ccd4c09e70a08175cf2e0cf7fc3b869 ] >=20 > Commit 76c47d1449fc ("gpio: mpc8xxx: Add ACPI support") has switched to a > managed version when dealing with 'mpc8xxx_gc->regs'. So the corresponding > 'iounmap()' call in the error handling path and in the remove should be > removed to avoid a double unmap. This is wrong, AFAICT. 5.10 does not have 76c47d1449fc ("gpio: mpc8xxx: Add ACPI support") so iounmap is still neccessary and this adds a memory leak. Best regards, Pavel --=20 'DENX Software Engineering GmbH, Managing Director: Wolfgang Denk' 'HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany' --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYUpNxgAKCRAw5/Bqldv6 8pzMAKCzDPu78SUUCBOXMUvMmgSTMVVHaQCdFCPSgYWZJ6SJ641FhcV8C8/7j9g= =gwmp -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--