Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp822134rwb; Mon, 26 Sep 2022 06:21:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6adVVYuyj9SIGpsI3RAOLLwh0FldljqHgpAb3gDDJ7QEeaIHTczNXYIpSWVtPv3iCEvdEB X-Received: by 2002:a17:902:eb89:b0:178:57e4:e776 with SMTP id q9-20020a170902eb8900b0017857e4e776mr21560919plg.14.1664198468744; Mon, 26 Sep 2022 06:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198468; cv=none; d=google.com; s=arc-20160816; b=ucRlfeODckWdu091sQpoUp/lMOdDtsjZJLXlY4+jPfggnHuz5F1mk8oJ6h49zYNLkH EPlxAHsZGFJp/oliTg4UmxZXpjyoikycjE1kvfwJdUAQcxsl4CTM5n2HiF5OTCR86uJp bdij8EuhmcCsp27veIBBArVobiaiaNPuks2XaX2QJonCk8hFPoPYjFkzLnV3uf7Pv+Xd L0tcVNGDuPRHv4FVwhpkA4IfdnK1gI4wCoBPfxCgsMkLzhJ0DhrSg7qmn7BLcnPfyI5n 5dkRscal7rjBRdBI7vxaT6abEWuoi2004arzOVzBLrt9kLDmeL1Ne0eGeJGicry17EUG T3dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EvoczXEPExPr7oYxUZ9NBoASQYi10iVRqVox0jSiWko=; b=DdelQgjEIJ3MrpcIo9cuq+lCu9xkUNzpTX74VATw6NdBb5kpvhDHC4qA/TrXcF7eHf LZrDdsXa9GpzqkzZOpvXWjD7mqCgycf8qJ7+ppgcuKGjJJShXzwQOD8C5CbxpAcfa9Dv fOKULHXBJCqXWWe5RsYGwU/9IgqrADrK6niHe+JtoA8faGyNiLgKXQdRaL0RYf2bFljg jl8oGGqTQf50M7ssY6MSkhuymjFX4waTigzvDbI75CQPTE3owKIHx6c6aSC5b8ttLyHs cYk4RVwyLb1375q6ycG46SvpAy10RBtdsfSAgxpZ5OWaBXjjdM2UA78LhIDO/a0/TYmo l3MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BaTbNCUY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r124-20020a632b82000000b0043c700ff7f6si8770150pgr.721.2022.09.26.06.20.57; Mon, 26 Sep 2022 06:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BaTbNCUY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233920AbiIZKN5 (ORCPT + 99 others); Mon, 26 Sep 2022 06:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235004AbiIZKNm (ORCPT ); Mon, 26 Sep 2022 06:13:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DECBE69; Mon, 26 Sep 2022 03:13:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E02A960AF2; Mon, 26 Sep 2022 10:13:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2B52C433D7; Mon, 26 Sep 2022 10:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664187220; bh=S/uIQBi13lJQnohuZqNlFk+LWnZqVLfvZQ856GUXAwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BaTbNCUYXFcZGuQK92BaFvV6v2/1xjHDDPYJk9F4ugADDs25pWfSgVIQHEXm3uK4X 8ZOjGFnm45IljSi4JIGUsSob6Wo3+PRuYDnyjNEVQXsracx6wxVVq5F0iHkdg2Cm5N Gc96Yfl2RywmKDmT7cwvgXP2TbNWzjRMFD4c7Z9E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Yingliang , Helge Deller , Sasha Levin Subject: [PATCH 4.9 01/30] parisc: ccio-dma: Add missing iounmap in error path in ccio_probe() Date: Mon, 26 Sep 2022 12:11:32 +0200 Message-Id: <20220926100736.214354283@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100736.153157100@linuxfoundation.org> References: <20220926100736.153157100@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit 38238be4e881a5d0abbe4872b4cd6ed790be06c8 ] Add missing iounmap() before return from ccio_probe(), if ccio_init_resources() fails. Fixes: d46c742f827f ("parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()") Signed-off-by: Yang Yingliang Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/parisc/ccio-dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index 633762f8d775..84a93ddcd57a 100644 --- a/drivers/parisc/ccio-dma.c +++ b/drivers/parisc/ccio-dma.c @@ -1569,6 +1569,7 @@ static int __init ccio_probe(struct parisc_device *dev) ioc->ioc_regs = ioremap_nocache(dev->hpa.start, 4096); ccio_ioc_init(ioc); if (ccio_init_resources(ioc)) { + iounmap(ioc->ioc_regs); kfree(ioc); return -ENOMEM; } -- 2.35.1