From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A768B1A0611 for ; Fri, 3 Jul 2015 10:27:27 +1000 (AEST) Message-ID: <1435883247.2425.1.camel@au1.ibm.com> Subject: Re: [PATCH] cxl: Test the correct mmio space before unmapping From: Michael Neuling To: Daniel Axtens Cc: linuxppc-dev@ozlabs.org, mpe@ellerman.id.au, benh@kernel.crashing.org, imunsie@au.ibm.com Date: Fri, 03 Jul 2015 10:27:27 +1000 In-Reply-To: <1435882996.2425.0.camel@neuling.org> References: <1435816521-13159-1-git-send-email-dja@axtens.net> <1435882996.2425.0.camel@neuling.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2015-07-03 at 10:23 +1000, Michael Neuling wrote: > On Thu, 2015-07-02 at 15:55 +1000, Daniel Axtens wrote: > > Before freeing p2n, test p2n, not p1n. > >=20 > > Signed-off-by: Daniel Axtens >=20 > Nice catch but can you resend with a CC stable? Actually stable is overkill, but this is a bug should to go in 4.2 as a bug fix. Mikey >=20 > Mikey >=20 > >=20 > > --- > >=20 > > While a potentially nasty bug, this is only hit (at the moment) > > in cxl_remove, so it's probably not a candidate for stable. > > --- > > drivers/misc/cxl/pci.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c > > index a16988d..fd43462 100644 > > --- a/drivers/misc/cxl/pci.c > > +++ b/drivers/misc/cxl/pci.c > > @@ -540,7 +540,7 @@ err: > > =20 > > static void cxl_unmap_slice_regs(struct cxl_afu *afu) > > { > > - if (afu->p1n_mmio) > > + if (afu->p2n_mmio) > > iounmap(afu->p2n_mmio); > > if (afu->p1n_mmio) > > iounmap(afu->p1n_mmio); >=20