Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1460169lqj; Tue, 4 Jun 2024 02:08:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrQRIy6z3OtkyZDjKaF2qQgjlDcJdxKQoqkUr/ACuGoJ2S5aAz2B3J1ocUxt/W/84vXTCAk0XRby5NKxsBUfMjMbHJYy7clPONvxiW+w== X-Google-Smtp-Source: AGHT+IEcSxs9BtAbQcMTNlnloXX5veRUHRR8m7LhMtf8omJl0kXj27cJ7jBzbq2Pw0WJaz/WggNL X-Received: by 2002:a1f:f4c2:0:b0:4d8:7970:28e6 with SMTP id 71dfb90a1353d-4eb02c80c04mr10133387e0c.0.1717492091899; Tue, 04 Jun 2024 02:08:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717492091; cv=pass; d=google.com; s=arc-20160816; b=enhHRlor1I4JMOVFA1PAscehUkoJA1QXz7fhdZMDJ+kLJFsMtpUKqxXytdV+7eOJ4r vwbhRoLxBqgi1XLT/0YlFBZMVYrHKhk6wY5i1otAkS8G73OB6cIled+foCocmQebZgb4 Tmf1s5ZuD4/XwAz0m8+zYuDvXWiDacSmLgR2aoY6rE0V6yATxtMvMMQikZP/wBJuqNB2 dR5I9TlXWeG3Fr8z/CDIAAbGiEkCf133JxBbam3HLHG8oc6SWqjHDUEBG5Bk0vEufmPT wBzHTk3yjhSoQlpK7AQxfRgrgHenQpPhhHztbtYrAXschm8AdX9O0PBp6jOMNd+f0W2l xeDg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=4hxxqyY8tg9gs5foTTrDMnIxAbtGrHn2Rh/GUEVLiFg=; fh=Pe+TUb8tB5EwWBNDJArn4dGGng/wHGNJfB+W1+HXKbc=; b=JcIzjQLwIRQBCKdWGXd1s/U8S7xCjjspJ1eyvi5BZzGTSdCwAbqHOKOlaWrqjurRp0 6/9Dr8xhznvZBGeBkPcFHPU9FWg9UBaknS94u1bOiLXD9VXRTo8RQi/hFBnTObvmKSYQ KrQd0OKAI+H6nruR8GZaXCl0tHw749+WK4YfPN0PTsktFPvn+Qe0B42b68l1L6hDvsK7 ZSnspemBqDkNhjkubriP/z8SmM+6Ue9ZChUTUqqR18W3rVUGtchIESN80bH5B1LavIpm AXQ9C2jbfdTlHcvcCT0A1WWB8VW5uMZzkUDnDgB7dik9kA8KtRy0Rt0M0G008MC0lOzU 1iuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Ri+XiH/t"; 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-kernel+bounces-200307-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200307-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f30631desi1011773385a.331.2024.06.04.02.08.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200307-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Ri+XiH/t"; 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-kernel+bounces-200307-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200307-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 238D51C22E18 for ; Tue, 4 Jun 2024 09:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAC6C143889; Tue, 4 Jun 2024 09:07:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ri+XiH/t" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 9DEAC14387B for ; Tue, 4 Jun 2024 09:07:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492061; cv=none; b=nHIdsmXALzgZZLbw7WAgS+Fz9OJvUXvi7U9IH+yMP3PYDEpXg4ieF0t1vcY6saFZEhgorL+ef+Ty0i1ZhdHurbeMQc62ZFp/f9ZmXgia00MGHaoqEsDAJt5m2aDSHUmhrL3je/8JYxUgqXV000IHUMJ70BK4yuuVwNHnHH+niKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492061; c=relaxed/simple; bh=Lg5u4c0tRIh9NSOUkB/ULuSZ635Lp4C1Z4dfnzEz0qU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UVLppq0TV7gZSgJj7JTFf1euN0g9ZQGeVNKfg1L64c9RWliZCQwzzxEVNC04yRdPPvtiD5fBpHoAyrPUdThDv8ECwhGPJZXf/KExOUk7i8tzaKAsKLIhZy011/0JxRXZY2FbEsIhfLA1f4TgNEm1b7xqeKOmM1ZkjxreVTl36j4= 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=Ri+XiH/t; arc=none smtp.client-ip=192.198.163.9 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=1717492060; x=1749028060; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Lg5u4c0tRIh9NSOUkB/ULuSZ635Lp4C1Z4dfnzEz0qU=; b=Ri+XiH/t6AgJ8zv52uxdu6QDAtCpX6BHvRw8T14l2fc/uKVkdBpDDBVq Q75a9XD2uA1VpW49Yh7kxQAf6SEYhYirFbC5FzLqC+1ZD4E7/6yanvUSH WjJo0hj+bJ6mRt1r1Xk7QAieErs8NUpvlIaoChqvQrFH7hdhB1KSGCD7H /sijwNY9wK1P6G+XZZX2v3s3+nbJVP3jJtcWcddtOk0j8FY+f0xTQMQC8 7ULCT8M7lTX4dQe3dse4shTsyGza2KTIIUDxfCSjdEMgGCBtSliaBZKdx SJRf/u+Rs9AGEnzuY823+YDpKH20OkY3wA+TvLHlDsAjBHVp+2iqH7aQk Q==; X-CSE-ConnectionGUID: 7vFx354YSlW5CvJlZqnbYQ== X-CSE-MsgGUID: EIGRMJE8T4iNJChnCGDepA== X-IronPort-AV: E=McAfee;i="6600,9927,11092"; a="24688785" X-IronPort-AV: E=Sophos;i="6.08,213,1712646000"; d="scan'208";a="24688785" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 02:07:39 -0700 X-CSE-ConnectionGUID: lT5fEjbnR7KP1GhED5RQJw== X-CSE-MsgGUID: KgsRUWxiS4qm9p5fpOozMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,213,1712646000"; d="scan'208";a="68342875" Received: from twinkler-lnx.jer.intel.com ([10.12.231.216]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 02:07:37 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , Vitaly Lubart , linux-kernel@vger.kernel.org, Tomas Winkler , stable@kernel.org Subject: [char-misc-next v2] mei: me: release irq in mei_me_pci_resume error path Date: Tue, 4 Jun 2024 12:07:28 +0300 Message-ID: <20240604090728.1027307-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- V2: add Fixes reference and target to stable drivers/misc/mei/pci-me.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index 7f59dd38c32f52dccf632fb4..6589635f8ba32b35fd28876d 100644 --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c @@ -385,8 +385,10 @@ static int mei_me_pci_resume(struct device *device) } 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); -- 2.45.0