Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp404497pxj; Thu, 20 May 2021 12:02:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu83k3nc1jLKt8j9e+COpUcc4rOJFX6UeqJ76m5oQ3FfX2mjKa61ZIkCvE5cUBwPXPZtZq X-Received: by 2002:a05:6602:1c4:: with SMTP id w4mr6732876iot.44.1621537356300; Thu, 20 May 2021 12:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621537356; cv=none; d=google.com; s=arc-20160816; b=AC5mRrGBktvxeXZysElrpmcvCXb9508huLCvoBVSwLLmijEhflBNcRo+vvnpVhTrwd uEBoZDzUm51LKWZ3ynlTdBcGPnKkkcJUkfyRQBW3RWFjZ42jBV1vdHh8nLxhCnkOGcJN pwkqxvvokLuv+0gmMpxeuBZROKhaaH7jlPIFjjMW7kCcsEULxGlT/4PPawZe1/AhxHqf VbXtCScaGtAa9pkbyQBo9o310Wc+WwCRTHFLRBxdOLf37XJvYeb2xHgAry1QzXDl1EIk wlCD4W+j86Bq+LNxtz5/w2sKaiUD3aq6t9SZo5mP8ziFLh4qCVBP29An3LDULCPdvFT8 lEJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3bmBdPriAljsfdye4ju0kkNoaOsNQ5pA9wetUrLFwzM=; b=N2QGlrqOgD+p9OngIGHSozFRisfbdocTJbC4zgx9JCv/tU8bxpkkttQOjTAwC6W8Ag 6IRKQihLmjLnAIkPLzZj5xXXMR96r+iu2SSnFLVtCXkCrkTfojZUoaGKk0p4stpjhOUm qAliiKyuTTVMORcX4cgURJBNeUmMCCB9NU3ec1eOp3AQR7f3H2kqMyTGRd4dS9SoLaUV kDKfINgk6XNayPOjO+A8dW/0UeQbG1zZw9LVhtNeE/9lqvGZig0s1MmYxeTso+Q92Qpu xkoUrUrlwzsSS7TwcqepmfhVycev6WuvgCqdiY2bbGYwsNLuLuqDh+aQdmSziapdrt8H azNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=byxkUoAJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y196si3400991iof.24.2021.05.20.12.02.23; Thu, 20 May 2021 12:02:36 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=byxkUoAJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235993AbhETK37 (ORCPT + 99 others); Thu, 20 May 2021 06:29:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:47766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234152AbhETKRV (ORCPT ); Thu, 20 May 2021 06:17:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72A85619A4; Thu, 20 May 2021 09:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503978; bh=lC97Tj1ehvcUuFVzxczscYEkaTHn/Mum0iWhRqdNedE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=byxkUoAJlLsuVAEzOVtaucWJrcdW95sk2Ny8x3DI6UGNBhtDUvMVCPt3IOez/1OtW cLSI4amDTSEweSH43a2/Txor2xxLG+DfBEsI7jT6pwbYL5pTTdJknmT0CoROZgvIro dLbK7NYHfWebmzVGRREhcbPXzuXy0svkh7Q7cK98= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robin Murphy , Will Deacon , Sasha Levin Subject: [PATCH 4.14 039/323] perf/arm_pmu_platform: Fix error handling Date: Thu, 20 May 2021 11:18:51 +0200 Message-Id: <20210520092121.443661052@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robin Murphy [ Upstream commit e338cb6bef254821a8c095018fd27254d74bfd6a ] If we're aborting after failing to register the PMU device, we probably don't want to leak the IRQs that we've claimed. Signed-off-by: Robin Murphy Link: https://lore.kernel.org/r/53031a607fc8412a60024bfb3bb8cd7141f998f5.1616774562.git.robin.murphy@arm.com Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- drivers/perf/arm_pmu_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c index 4428852e1da1..bd5af219ca9b 100644 --- a/drivers/perf/arm_pmu_platform.c +++ b/drivers/perf/arm_pmu_platform.c @@ -222,7 +222,7 @@ int arm_pmu_device_probe(struct platform_device *pdev, ret = armpmu_register(pmu); if (ret) - goto out_free; + goto out_free_irqs; return 0; -- 2.30.2