Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp986539rwe; Wed, 24 Aug 2022 12:36:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QudXT/lkEeSe8s05zlygK+B9pfssqVEKnooQ7bKUdkyQjv8ZBREhWXetuvHvI1Dt2i/LC X-Received: by 2002:a17:906:fe0b:b0:730:3646:d177 with SMTP id wy11-20020a170906fe0b00b007303646d177mr278643ejb.688.1661369779704; Wed, 24 Aug 2022 12:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661369779; cv=none; d=google.com; s=arc-20160816; b=DE9WzqfM/3NH+r3gJVyev79KcOennSaJ9Ezfq7bIxrTqBYZy4X2EaH7t6T3jYv5fHY u/KWplxqwsDq+w04ws6bZsGZkcNWbI+ia6IGFvJdgSlpSdToIdUEHQJ3CxLM1g4xDS+p Sm6q3QGfWe75Ta5i+f6NuyQPeopmztArOc6izXqth9D1+lTPJjqTzx+1gH5JRwpYYj2W AFHGiij6brTs18q+YforA/tMQf9XeSN0RP0qgBnBRmw43qLtwuTR0RLBXGyUfOTar9wb 028fyn/fxQLrzcxA0VqsLxjylWBcfGNCLM1brph4CGLtEzgLm2WzyIaf55TXav0OX3nW Y3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nJGkt2Tj9rBhXq/oboI6SzxXmp44KO3CPVKmK39BUAE=; b=fBqfyA9GUlamfnCnneVFWwWtwoyoo6P0FnGLm325Z19AjeGay6p4Gk1b2V0fngfGuH E913yAioIhTg2fBN/7zZ9qFqvkh2pl4OlDgdCiuDVteMtaXWaXLxVqdSNpogAkXEf3MA mNOVo6HZZVApfhz4UOEgUvRlLLDYw/PPjXFWdIa/R0UDXcG5BthOtAtCIf4ehPzg+2T9 HqudpgRoVsdtenYmaX11JD6g2bl3y+CUq03XQrfwcqo0NsRtRVYAMVxlb9S7Wj8U7/Gu HOPV5Y5aFgaFDZiHwEHqLSfCICQdmNImx0bsEu48o82J7xBrqJyiaYZpKgDIde9HZwTJ PWmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=C0bT28TD; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a0564021f0400b00446586176e0si5072371edb.480.2022.08.24.12.35.53; Wed, 24 Aug 2022 12:36:19 -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=@gmx.net header.s=badeba3b8450 header.b=C0bT28TD; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236041AbiHXTVO (ORCPT + 99 others); Wed, 24 Aug 2022 15:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiHXTVN (ORCPT ); Wed, 24 Aug 2022 15:21:13 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE89750718; Wed, 24 Aug 2022 12:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661368857; bh=cEGCdd30CgrUWQ0H56Vy99IDtXt1g7QCNpyfAOL1brQ=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=C0bT28TDmSfOfZDUKFGb1p6j73bKRa3h4JO/2yqceXryl4Eq2j9ah4RqmmGhIybkq 0SPF2UOnLry2W9e7PXf/LfqeCMrmnQi1ZoprErska3AJrEB0FQsClU+S3rp+OMwvTl Wv5FAfuCoD3IalIQ0+4CITJKM+3V57dp3YE9e6wY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.173.19]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N4hzj-1pPC2A3ASF-011iCP; Wed, 24 Aug 2022 21:20:57 +0200 Message-ID: <559e9805-3e38-fa50-d3ce-5eee317832bf@gmx.de> Date: Wed, 24 Aug 2022 21:20:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH -next] parisc: ccio-dma: Add missing iounmap in error path in ccio_probe() Content-Language: en-US To: Yang Yingliang , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Cc: liqiong@nfschina.com References: <20220824093657.3365027-1-yangyingliang@huawei.com> From: Helge Deller In-Reply-To: <20220824093657.3365027-1-yangyingliang@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:8+G+me1KousmzGJtM2e0ceNDHs1+YkPZFm31l+50i9bkDC+Fm6m dD/+5xJY/t9JLGNSyych5FsvtNWdxVtKCVe+LEWz7gjrDmZd6rS0tgJbFnic3MH6sfkN++d v7ZeSe049GqIJb5qKHDB32vQSHedpuAo2QKVCJeMMXt9FMzz+j+lMRowKCHHEPfb0WwalM3 3fewfRwl1f9QjxaGaYCkw== X-UI-Out-Filterresults: notjunk:1;V03:K0:nvPYbvSR2D8=:W4KYjgiG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HM3b6j/MC2bHrhqRgQ4RdjDCcIxg/OyxZTbZS/Z8ouequfdXPH hXK4QDRHTyZ6SnDEybyXTWWQhCUFFOLuqtNuK/XsKhY7o01qNfBPXLxLA== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 8/24/22 11:36, Yang Yingliang wrote: > Add missing iounmap() before return from ccio_probe(), if ccio_init_reso= urces() > fails. > > Fixes: d46c742f827f ("parisc: ccio-dma: Handle kmalloc failure in ccio_i= nit_resources()") > Signed-off-by: Yang Yingliang applied. Thanks! Helge > --- > 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 f223afe47d10..a66386043aa6 100644 > --- a/drivers/parisc/ccio-dma.c > +++ b/drivers/parisc/ccio-dma.c > @@ -1546,6 +1546,7 @@ static int __init ccio_probe(struct parisc_device = *dev) > } > ccio_ioc_init(ioc); > if (ccio_init_resources(ioc)) { > + iounmap(ioc->ioc_regs); > kfree(ioc); > return -ENOMEM; > }