Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp839923lqo; Fri, 17 May 2024 03:14:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCkqcvy7tvAmScgvObDfC1vl8DB3HEtqeQ3uW9CDqW93h+/LNcfQQm7M57Vc1GxLx24xfRHsUGlGTv/HmZmDab506XSFM6H8x4I2Q1HQ== X-Google-Smtp-Source: AGHT+IHwYFQNzNBLAAq+FTBqofy4mhMpP8WfhInXRCxYuyytlN+JoP7L1E40oRtw337ovf1yBaQL X-Received: by 2002:a05:6a21:19c:b0:1a3:df1d:deba with SMTP id adf61e73a8af0-1afde0dc95amr22904693637.31.1715940897900; Fri, 17 May 2024 03:14:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715940897; cv=pass; d=google.com; s=arc-20160816; b=jhh4Fhg9js1C7gWsH9/e3M3O++kFITIo7CITRc7js4lldfT+mtz93Xl9nFqs73xOfb dIxl2mzyDG9XJ2hY70LwkGpTZo6e9WiXQSLJVeurgxSbowgV9KxYdqSJXf9gjg1fPlcN r+JKA09Oo+ry6rI8WTQOCZz/u+ei9jz0Eqa7xZWW7MJRXwRVAPZQwdlfsL1h8VHoS/fu qvjId1KMDnCOjLmFFLF2abzT0tedv44GCc8dnJj0aF/BRiwOjYq4A/7KMqR1DSNJEUMJ D7ViAUq0QKyQgadn6kkvW9RaxML2szimKC4hT/9ncv3kRfiWk41/yCrru9MlQnaDm8DO Q5Lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=pRw+irLvVfSA1QMQTfqWe5mIfNx0dGttH0V40PXncKY=; fh=euu0nsISyIyRUk8/85YqNyWUmtByrtV/PehVuDFvsIU=; b=Z9N8f0E5Pdf4M1Yc+VMVtIbVnn4fIgUyat5A6aCjIAAou0qbRSgRGr0r0ijbBqI6eN 1Pvm69lrvRxbn+zPcYZWbp8Gmn2ffE4qXodeY9d/hOUWEBT/kr/5PHVoiYJy+UCpWtCM E1RTOSCiuFHQedNJQBeM6POzAdSTHhK05hJm6ZIJbXeeYr/ex8KLJh3FABEMoskwryLa UfLHp0cmKHuvFuFdAQ01/Rgoda2YGEH3lGbc/2bNsYDAv87bGNjzSSJiSVcogc0sSKAi bJSBbhAW9az/3pzuaR6PdHothswx07n0zl8+0iQSZ7b144EJZs6FBEMyPOtlldtnItTP 5QIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-4761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4761-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f69efsi17858136a12.309.2024.05.17.03.14.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 03:14:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-4761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4761-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 72D4BB22F43 for ; Fri, 17 May 2024 10:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DCE32E417; Fri, 17 May 2024 10:12:21 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCD002E403 for ; Fri, 17 May 2024 10:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715940741; cv=none; b=EOWWwRDF0p1EmBP9wSv+Mx00rG28f7w2u0s9J38YCVu1mtbddxuTsI+Zv4ghYncURt35lZmkA8cIIfkF58syVpm0Z2sRQvceCQ65yARryf42rDnKhug7S79H8FYHDXYQ3OCwUjK2iW7YCJ83/Bc9IDimLKDMdNwgbJBQ0auMrq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715940741; c=relaxed/simple; bh=RZeauON6bQ1FQmQFEdel7cWVV65AuJvMQAQRzF7Wlxg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fcKo86DAfAKlnxKgbSBXcXydMbrrl6VR2BE0tnp8BAj2XTY5qNLwPYUxozr4c0C9z6hYD2WRVlvPXY/mzExvnYvP1H09JRHrHOHHPm1eon7BW3/f8YzA7SyhnvBDqADxJt+J1OSd9cvYgLhxsvniHi4XVarieVG/cUFvFgHTl50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [141.14.220.56] (g56.guest.molgen.mpg.de [141.14.220.56]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 170E061E5FE01; Fri, 17 May 2024 12:12:06 +0200 (CEST) Message-ID: <69ebe55f-0c2a-472a-bb4c-17731e48bffe@molgen.mpg.de> Date: Fri, 17 May 2024 12:12:05 +0200 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/3] Bluetooth: btintel_pcie: Fix irq leak To: Kiran K Cc: ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, chandrashekar.devegowda@intel.com, vijay.satija@intel.com, linux-bluetooth@vger.kernel.org References: <20240517095447.956132-1-kiran.k@intel.com> <20240517095447.956132-2-kiran.k@intel.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240517095447.956132-2-kiran.k@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear Kiran, Thank you for your patch. Am 17.05.24 um 11:54 schrieb Kiran K: > Free irq before releasing irq vector. Can the leak be detected somehow? How did you detect it? > Fixes: c2b636b3f788 ("Bluetooth: btintel_pcie: Add support for PCIe transport") > Signed-off-by: Kiran Just a note, that your surname is missing too. > --- > drivers/bluetooth/btintel_pcie.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c > index 8d282ee2322c..d8f82e0f6435 100644 > --- a/drivers/bluetooth/btintel_pcie.c > +++ b/drivers/bluetooth/btintel_pcie.c > @@ -1329,6 +1329,12 @@ static void btintel_pcie_remove(struct pci_dev *pdev) > data = pci_get_drvdata(pdev); > > btintel_pcie_reset_bt(data); > + for (int i = 0; i < data->alloc_vecs; i++) { > + struct msix_entry *msix_entry; > + > + msix_entry = &data->msix_entries[i]; > + free_irq(msix_entry->vector, msix_entry); > + } > > pci_free_irq_vectors(pdev); Kind regards, Paul