Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2065678rbb; Tue, 27 Feb 2024 09:31:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDIRlsZe65yK+GPU1gJKwdN44wO85XNnR/ttRj0gIz8Q5sx7g6B4o1E8Gp79OwqVck1tBXDD6YV6xyAo6N8xwJRJ4/1O8E4k5QX5nQHw== X-Google-Smtp-Source: AGHT+IEZ4FVkdfdlDtcrFetUsz+3hx3AYDwkljQBUq8eFAS4ZYqMbsYNJSBurM/JaJMZul8Sa0tQ X-Received: by 2002:a17:902:8494:b0:1dc:4c25:c4fd with SMTP id c20-20020a170902849400b001dc4c25c4fdmr9820201plo.21.1709055070461; Tue, 27 Feb 2024 09:31:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709055070; cv=pass; d=google.com; s=arc-20160816; b=kpADop1dOYfxvUCakWworDRVxDDbhmGHVKdJhK/4CV+lUi8w/7+Ov0cPTVs8CKNzVw XDoQxObabkJoaJXH3zIJxEE2R4Cp3T6N2wMNY5SnUmOMP0oY/sQsyVnPBrMPAsv9FDZ5 byCdscAaaN+Z8sZm/AOpSddV7yi2sc8vwZFcOsonmDk7vPlcKl7ho37hIrKkmB+6OnuY bDtbnwY8H+QGw2dW3bACe2hdoyeVHOoIPInjkZEqkkdjNRlx0gaY5MIWLI7Hbte5Av/4 KcCfP+LbzPSI6Noeep45MRB+BMIq9GbpIkhameBiYM8WC2HXr1q9nxEk30xfS6/nm/zs 5aoA== 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=A/byFMGRDL/zW77klvdPeQWImPLFsRuB++WJKHoG0lA=; fh=SQgv8YbMFIGkE+ZC0arw2p/sGkfLeMJ0SfgtjPsCrE0=; b=bgQ9YFDNFPCTfu/jL1Q6T5AsQSLHBgD/w9X59FTWjpCH58FCzAIMyHKb55pQT13gNb 963dvL2BFKu/4aALRpGHo/3C1RzAB7P5111kBx9H49RY58WXwdJW+97pgC8u4DTlMCs+ WpEiJmiuQjv93Pc43vLNuc+4cUbpLl/IKZFTjjNJrRuTnAa1R/ZZukvAnHWSfZeYAix3 48Np8PCaVWAgBaGDyeDfSnQ+yCT4yk94qXVnVs/IiXRF/ONJgKbpLmwbJIfJDRQl+Y0p /8fy4mx/0SxPUgrdn+YFUTRP0Limqaoe+IDTkOgn/kJBhM5COSYCWxMgNaZdJD/ATEOb ZLIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ov2zixir; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83719-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83719-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l12-20020a170903120c00b001dc6793039csi1658716plh.312.2024.02.27.09.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:31:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83719-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ov2zixir; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83719-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83719-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0422E283F19 for ; Tue, 27 Feb 2024 17:30:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42F2314EFCB; Tue, 27 Feb 2024 17:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ov2zixir" 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 607CE14E2CD; Tue, 27 Feb 2024 17:26:41 +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=1709054801; cv=none; b=HZvZq1jaUS7nOapDYeB7FkZD7g4NArgiYzK5ZiepFlw6xHdT18FWZkVGR042OAkYXVD7J9+YNKjHYA6iGDwJIm2I+zEWIT1ATYd/JTYHo3kS9j2LYApywKXatmuoucNJtdrIkOxaR7+tddy/OXkCRq5gb9UxBWMLVwYYEqJKUKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709054801; c=relaxed/simple; bh=ouPMAhLoOctS4gogkt4FxAcqliZ0vW6BKsZD92ALIzo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=f7RE3+58ysgyobz5d4uUYaWLbSWXmKwHEH5GstQHRICg4LEIKarwdT1NFinQ5ugiMVFsGSMqPLiOOUuQakVbIn0injIhx6XdSeQpUHpMcwBvLN8Rg+/AMKlsiSqjuMHzorum1JBpAD+sRlCViSojI5FtqZHZ2m3qbZGkwl5x9Ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ov2zixir; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 846F5C433C7; Tue, 27 Feb 2024 17:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709054801; bh=ouPMAhLoOctS4gogkt4FxAcqliZ0vW6BKsZD92ALIzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ov2zixirrR8BKHoP3qJyfyE2KKdqC+ylLK50ztDAbObiUUw1f2kcFId9Bf1cctxlH UTWcDoiq3f4gAwexs8eYKhpnprNcRQ/gQlh4v8CzMeOUo+Y/Z6hAvIv/GXBhOMhpOq LxNC6bXClttStT+J/ACvLgZekTlXNRXLhQp7VoQ+q48BhSbztR/US5TU0R8VBTWtRl CcKJdKNsPif9Si5/nYq8myuKSptGSTSieuB14FBuUJIooFd4dOMNITUyg9ieeaINuC tNURGVzP7YR2+fFLAWKNsaZoea+dLvjg2X2PLFrP9KJhE8Euoze5zY5ZpqL8dsHdFA Uic53ab5rGn6g== From: Namhyung Kim To: Christophe JAILLET , Mark Rutland , Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Ian Rogers Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Arnaldo Carvalho de Melo Subject: Re: [PATCH] perf pmu: Fix a potential memory leak in perf_pmu__lookup() Date: Tue, 27 Feb 2024 09:26:38 -0800 Message-ID: <170905469229.501091.5601373719556598823.b4-ty@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog In-Reply-To: <9538b2b634894c33168dfe9d848d4df31fd4d801.1693085544.git.christophe.jaillet@wanadoo.fr> References: <9538b2b634894c33168dfe9d848d4df31fd4d801.1693085544.git.christophe.jaillet@wanadoo.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Sat, 26 Aug 2023 23:32:45 +0200, Christophe JAILLET wrote: > The commit in Fixes has reordered some code, but missed an error handling > path. > > 'goto err' now, in order to avoid a memory leak in case of error. > > Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim