Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4952654pxb; Mon, 15 Feb 2021 05:54:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyor6Z9xl45thrp2BW66Ur2S/pfyudjbOfvzbMD7xdPZvOmRma1gBwSuLn9llwnZCcKY72w X-Received: by 2002:aa7:da8b:: with SMTP id q11mr15283397eds.325.1613397256029; Mon, 15 Feb 2021 05:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613397256; cv=none; d=google.com; s=arc-20160816; b=rdoi1hb1se8r+knVDHQ/B7o1RT2/IRuZyDTHGkGi4nszUlBuC7FeQNvrohDXVBaZfA BvxXFB2j+YIX3OIQAvINJz7VZjfcbs6XDdqaiHNmHjTAW52/m1tPI2tejuV2AEZGDKJy LZhGpW66kID2SWXGdlTZ6wjJsx78GXYoMcqBGO4/J+MPB0SckId9p9g0cvMvqtzPYu21 Lkkr9M/b+whu5tj4rt0n2O31p0Ywn7vpYjgssISJP6wf2RNsW974WMNfDnzUAB1POtbs aSHpn28DDDrAFWy9ADpzaZA4dQzWBij0nSgH+x0pa9eiTBN4HLn9DelspHVGrTytySdU Ep+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=c8bSz+H/Y+deXhKPimWwIPNOQ5H7ZRAxFNEPwOcGu2o=; b=poynVZdZHL6osVgleGXK2iljvD4TEE46NMvgr0QmMLTgEMFdfMyCUtxK3eAhUYitdA cTlGHu48sM963ePsFKChpp0DSqYR3c7SaeaEoEgYuCBWm0N5KdVCkjdwye7DcolndCnM PUt3kl97yiTUERu7mipVuqkMb5k8xyHv+8vHHsHzxfK5UtJtBFBmuTqZJUCGDaaEVhhw HjVpTkZRSLazRKVzSWnLJeBo+CNU0HZOYBVQwkM7ZNHRaCaphUjXONBUGHWSknJQ7r7a LaTfu4u/7z7T4cRZLhcRBKxyNeilbmITz1JfaB8vq46QWQg1Yfqn2/r82sqM0AifeEdA rYrw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si12244996edq.522.2021.02.15.05.53.53; Mon, 15 Feb 2021 05:54:16 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbhBONwM (ORCPT + 99 others); Mon, 15 Feb 2021 08:52:12 -0500 Received: from gecko.sbs.de ([194.138.37.40]:44134 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbhBONvH (ORCPT ); Mon, 15 Feb 2021 08:51:07 -0500 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 11FDghJW013208 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Feb 2021 14:42:44 +0100 Received: from [139.22.41.241] ([139.22.41.241]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 11FDgh44012974; Mon, 15 Feb 2021 14:42:43 +0100 Subject: Re: [PATCH] spi: pca2xx-pci: Fix an issue about missing call to 'pci_free_irq_vectors()' To: Andy Shevchenko , Dejin Zheng Cc: daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, broonie@kernel.org, jarkko.nikula@linux.intel.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210214145746.602770-1-zhengdejin5@gmail.com> From: Jan Kiszka Message-ID: <10fa1c64-6a7d-e995-f292-20dc6ce5ed62@siemens.com> Date: Mon, 15 Feb 2021 14:42:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.02.21 14:22, Andy Shevchenko wrote: > On Sun, Feb 14, 2021 at 10:57:46PM +0800, Dejin Zheng wrote: >> Call to 'pci_free_irq_vectors()' are missing both in the error handling >> path of the probe function, and in the remove function. So add them. > > I'm wondering if you noticed that it's done by pcim_* API. > Perhaps you can introduce pcim_alloc_irq_vectors() or so and do not add these > calls at all? You mean as plain wrapper for pci_alloc_irq_vectors, just to document it's managed? > >> Fixes: 64e02cb0bdfc7c ("spi: pca2xx-pci: Allow MSI") > > No, it doesn't fix anything. > Ah, now I recall: imbalanced APIs. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux