Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp266846lqo; Thu, 16 May 2024 06:01:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXO7ttOiWFN2W0KRSsD+osj5ZZ+LZEoeQyjvxaQzIh3xm8Dw7ht1GyqdsQINBhmEPlFczlPJ6/Q4SXK8dW7HDu4N0oIlePqQ2IR7D40Dg== X-Google-Smtp-Source: AGHT+IFD8EHURu9bd3d0xoHygAdpT3LdSqcSrRz74YUJsEtBg+AqIv4S/3jACbeQuIT4S9VZQIL0 X-Received: by 2002:a17:902:f610:b0:1ef:4556:2812 with SMTP id d9443c01a7336-1ef45562855mr227957145ad.32.1715864466637; Thu, 16 May 2024 06:01:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715864466; cv=pass; d=google.com; s=arc-20160816; b=KrdukUl/n1GfNdMbB0isMr0GJdsW7aV99JVybeEsHk628oS0mkT206bFcMD/MUf8ip TT+trKuYgxwb+g8gksVBdxdJX/eL/3vKO63p6zdaDKg65F0TevGgrj3weeTiSRHE7qVz 5rLwWmeh8Ox2cuyb9dcGUw2Jkr6d5d6kWIBH0QrvmyKIC4fNbRl5Oxpf3dMhmvu+oplo 8+28ZK9IdbI8ZVg1CAYL7io2ePTX9wj23XQrUAR1Hsr7c28ENDc4HfuXaJv8ysMC5t7f rRkL1YZpE5QJd44SAsAZfVNSG2Nk7OyoeBAUwoZqv3I0qbbeyD0MwAdijiuefzuQRbk6 kNQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Bs6igLRv279QVLZA06CFFS43wrO8862tM2OI/J2n/fQ=; fh=UROIhWV2C6PjtykB+MLkmklhtfK4Qi96WjvbYxgtHrk=; b=SZ+oUWhKuSk/iUV6pfkCEJGJOczb7P7a793Y5RrIZBYe8zzpYDU+bMG07M0IqTQL1i iqx6Dyu3EAIQ/k9qJ3qI8tu/zUNnis3vsxZc2xVSuRLESS74BCzD28jCRj3PcNih68l3 KOCH9+x7FvKELI0wc8GeXdfkcf+BODDOkOA/IiuJeYyuQbWNgqRQ6fnfOPsqkR0U2NOH kb3PpVGOkKWAjIlL1cDFaieO4DDKyOEw3KSpCkjQqa3xHEHFktBl6024EkDbM220v3p8 KXTQAP5uED3hfImf10gcV+ilBZFJvb6YNAYGKjBsfSAAicl8phWzBg33OEdEFXQaq0ZP zxpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ihMqfx2N; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c1395d5si140541405ad.472.2024.05.16.06.01.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4708-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; dkim=pass header.i=@intel.com header.s=Intel header.b=ihMqfx2N; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 DC9EAB20FEC for ; Thu, 16 May 2024 13:01:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4E91146D59; Thu, 16 May 2024 13:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ihMqfx2N" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 568281465A3 for ; Thu, 16 May 2024 13:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715864456; cv=none; b=iG0mdar1URGaTEod0pun7lB7MAM3Ye/8WeyjieUFz/ZKeilBOyuLMGIlJlMuXyuU6mqxk3b7jGDTTLcmI1oqD7rtCH+wZJ6eM6fMFcJZO7thEM1Fa7EAGIWKtXOO5ZztDr5pPOw+nsxFg7D4wviupKtDT7zCukXEpQ24yRoLGkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715864456; c=relaxed/simple; bh=nkCyRO4jkYn3c8ngYpJkV5ohAAjLZ1vlieH2SqDDF18=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=itCbGAWl0uBmrXRehn+ePzoCFz1IOiQIc0N0idiSIRS0Vev0pGlzmLPWE28xcsYCDA7GjVTBEzf+Jvum9NLPmPI2JpKxSe3XT+ILJ7sOWgceVDnj+jK3/srWyF6unLND6L+AMBYOR5Y89FMYAmtsSR2/S5nOONlhlpKHHmtguxw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ihMqfx2N; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715864454; x=1747400454; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nkCyRO4jkYn3c8ngYpJkV5ohAAjLZ1vlieH2SqDDF18=; b=ihMqfx2NtguPcRMeqJyrsvbUMMnbImmM+FDXkw0rcfyfoRUij+qjK66e F/gz059eBIg0NfmJlMVRdeGtZ4mAoZfG+Etm8YhKciYuGS8WKuBpNbihf AMqqKwwKFVFFCPUzFAlVLbVepi7MNqj1rNaG/kofpmH8bDu7WLnFF+pAx +msC7xu1gpOTs80xxzaDSNt65q5njnQ6AKhPDs1PcB+MhLx5VpxALRhyZ fKF3C8GTOAIwHzafGzJBxcYyUdDD7+Ghy3wJjmEaC+uxr/L6Khr8Xd/tH j4IRacX9KR80b9eRa0aI5J0BicSqRti6cn2/Rrmu54mLJPk1jJPmAFDLs Q==; X-CSE-ConnectionGUID: 1QJ1p/YtT6CItqc4u+/JRg== X-CSE-MsgGUID: T32O36tXRYu2ja1gsqkf6Q== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="23108539" X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="23108539" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2024 06:00:53 -0700 X-CSE-ConnectionGUID: xJ6SNpgiR1qQ8HbkWFCWYQ== X-CSE-MsgGUID: NstKWZ2nQ8K9ojxbwE78LQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="54623616" Received: from intel-lenovo-legion-y540-15irh-pg0.iind.intel.com ([10.224.186.95]) by fmviesa002.fm.intel.com with ESMTP; 16 May 2024 06:00:52 -0700 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, vijay.satija@intel.com, Kiran Subject: [PATCH v2 2/3] Bluetooth: btintel_pcie: Fix irq leak Date: Thu, 16 May 2024 18:45:09 +0530 Message-Id: <20240516131510.904787-2-kiran.k@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240516131510.904787-1-kiran.k@intel.com> References: <20240516131510.904787-1-kiran.k@intel.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Kiran Free irq before releasing irq vector. Fixes: c2b636b3f788 ("Bluetooth: btintel_pcie: Add support for PCIe transport") Signed-off-by: Kiran --- 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); -- 2.40.1