Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2476069pxj; Mon, 10 May 2021 04:02:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8/EjIzK1av2GDtJkNDPP0h8Wo4VuH/QrYdCmJ9VBA/9ifl1j6hBV2UM7IIJWX6Vho/RLP X-Received: by 2002:a92:d44a:: with SMTP id r10mr12151740ilm.245.1620644550267; Mon, 10 May 2021 04:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644550; cv=none; d=google.com; s=arc-20160816; b=ohH7IahSzatEziJWcDExvSwP3ejX4HVojcvqWo/1tYYXpjgc1xFaUDEgcruErCOOMN a6QLmoI9SA1XTCgTRsx/GpMjxND7S2Mg8NWHypRmAjgK+xn4wN5ro4AgRrMLNeKqOkuq tgZ4eexLd8u8A3UvdezUfHt0bVipqgQ5GQLolHKOGfVeLYGoEGVWxITct432DJiT7Aqx tuT76dLonY7t9XSDZCDqnNlAugT5bmkV2H2SrfKm9m2+6/vcLdN/5RGWGB8V9K0uMACM GM/nhtUQPoUAoSdPudiPmnhlLQ5VwUC9NS5JyPJTwY8Ql4VYUwFt50ib9cyczcdQdBPo EKeQ== 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=P94g/vJulYrZUNTRKjb+keJ7uN9h0VJvs/tCP+1YRb0=; b=qrc5A+iAh8KIN/ZUN3afKxpf1u5+oVIbqNA4tcOeIpY0B/HWzAK1Ba4+TouIyWvGKZ xD6IKldUYvncfN8hgIMb/yXVLdoWg/afdGuTPvWpOciWmkkNViuTwBPIe65VYEAcZ/hm 293Qe495KID56eT9i87wwSm2Q2shHfrNpCEhLuSucjpXJlNpq7sUmer/jQuonpb+oL3r Ehg6OKzeH+8XztcfvYHLq0qhj08ob6p9IR1melYNOlD5TZFVeDAx2f/VPy5JQdVVFcrx 39Ruot66sqFJFXOo4iqmBVE1ygSMNzcySGr3zWXfMNLbOkmCeoBZAcrb2ocPL+raO7wr rmdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jk/uD9fw"; 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 y23si15323290iot.95.2021.05.10.04.02.17; Mon, 10 May 2021 04:02:30 -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="jk/uD9fw"; 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 S235113AbhEJLAE (ORCPT + 99 others); Mon, 10 May 2021 07:00:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:57348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233077AbhEJKpC (ORCPT ); Mon, 10 May 2021 06:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 16B6A61878; Mon, 10 May 2021 10:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642877; bh=gsOQbo2ysZ5oy6Px+xkTTDiCAZGBktXiZkezgWpZymY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jk/uD9fwaGBrkiGsKxvWS22MoBPtB9ZHP9+7NfK3Ktw4+nuxE07MsZzMAyJZ7Vf3N UKSI+tJ35quv1rB+Du1+vXZnhY6nWIqwKbGJzMsYCqfFRT9VYDPl6FDUHjPh90Ci3q 28dTxeF2H+m21Gvq1TY6zPtGQIZl+bFQzULA5GKE= 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 5.10 081/299] perf/arm_pmu_platform: Fix error handling Date: Mon, 10 May 2021 12:17:58 +0200 Message-Id: <20210510102007.602525136@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 bb6ae955083a..ef9676418c9f 100644 --- a/drivers/perf/arm_pmu_platform.c +++ b/drivers/perf/arm_pmu_platform.c @@ -235,7 +235,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