From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D10DD143873; Wed, 19 Jun 2024 13:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718802157; cv=none; b=tzMqWD/WSgdGDGMDbXcKsIgBf0QeXLSPvRtKle7Uy7n9GSIqb9OBL7CHEHUMtaVFOZh0Fa1B/Q51Wq5cxvUboB/UcVkBxE1fzujGWTAY5yxXQhOGRf7i15TNQ9+E/O6CyVj1LynH9bkJDuxMg4CTykFMebnhEDFSLRDWZ7sLfm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718802157; c=relaxed/simple; bh=qyBDvWki4JdZ0eg9T/YlNw/VkJnOA8prU+4uXPg7Pp8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tfsoKCUzN6A7X1nZH1SlEu5v58Yi6iYQ/QhvSKF9g5mQVTRRaazUOE0/E85wohHsPMVxPGLgd+GFMOixU2Z3IZcLSaqUN9kLnGB21QiXjw3SG8w2d7e4lVRwYMc7PaNbXafRWddGYvEOsiztYU/pIFCTn9wbDb+amNktocW23ag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SR3+JiC7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SR3+JiC7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56A2DC4AF1A; Wed, 19 Jun 2024 13:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718802157; bh=qyBDvWki4JdZ0eg9T/YlNw/VkJnOA8prU+4uXPg7Pp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SR3+JiC7kkB7VLk7nE8RC2dhY1iu/JZuXahuyxtr3SMt5a2j/ZuwmifOCyPfJcHK5 RKKGJ+V01T1MYDdTPGi0COadC55CPlrZQU5SKCqYK6hw5H9qwB6yJIt0XG7RmYM9Ou TH5AmLH9ga75Y94xNnphJBGG4Gv9N9U5uJbTUqzY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable@kernel.org, Tomas Winkler Subject: [PATCH 6.6 084/267] mei: me: release irq in mei_me_pci_resume error path Date: Wed, 19 Jun 2024 14:53:55 +0200 Message-ID: <20240619125609.575591255@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619125606.345939659@linuxfoundation.org> References: <20240619125606.345939659@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tomas Winkler commit 283cb234ef95d94c61f59e1cd070cd9499b51292 upstream. The mei_me_pci_resume doesn't release irq on the error path, in case mei_start() fails. Cc: Fixes: 33ec08263147 ("mei: revamp mei reset state machine") Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20240604090728.1027307-1-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/pci-me.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c @@ -400,8 +400,10 @@ static int mei_me_pci_resume(struct devi } err = mei_restart(dev); - if (err) + if (err) { + free_irq(pdev->irq, dev); return err; + } /* Start timer if stopped in suspend */ schedule_delayed_work(&dev->timer_work, HZ);