From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A770C61DBE for ; Wed, 26 Aug 2026 21:41:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D7C3710E33C; Wed, 26 Aug 2026 21:41:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Rz0x8RQQ"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F0AB10E1C1; Wed, 26 Aug 2026 21:41:39 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id E82FE40121; Wed, 26 Aug 2026 21:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A9EA1F000E9; Wed, 26 Aug 2026 21:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787780498; bh=JQyo0FkTx6wAUb0+0rhsxKTB3sLkP5D0HVkycmLIZsE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Rz0x8RQQ9nINYtsTsbS+zvaJe0y6HEg6PXNKbZugTNP4Dppg0JaoxPtbhxk7KiCB3 FD0vQMzWO7Rd3ZCpwoLG42GqzRSfZYcSBFUBLu+8zpffGauw0nnlvbGRo9uFs1Oz8O WPSaYOPVbyJxQhV4KCX/AFYmjNDxrc+aXCfx8b3ET0yAxOR/U2LU9KpmQ9rEzaQ3+w zpfGPaPbbC19LpNdY/GIlZrmWrMQAyh4/8UO9BxoB4rj694xtSo9VDNGGFlew7ymCg BaJ08yiJuDsrzZkTT30E76k8b4RB09KZwnqAiSxC9WVmYpub0k1DgORtzrj8oePT/O dXXtwJfPEO0EA== Date: Wed, 26 Aug 2026 23:41:35 +0200 From: Andi Shyti To: Thorsten Blum Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Simona Vetter , Chris Wilson , Lionel Landwerlin , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915: Fix memory leak in query_perf_config_list() Message-ID: References: <20260823205028.178597-2-thorsten.blum@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260823205028.178597-2-thorsten.blum@linux.dev> X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi Thorsten, On Sun, Aug 23, 2026 at 10:50:28PM +0200, Thorsten Blum wrote: > When krealloc() fails, free the original oa_config_ids before returning > to avoid a memory leak. > > Fixes: 4f6ccc74a85c ("drm/i915: add support for perf configuration queries") > Cc: stable@vger.kernel.org > Signed-off-by: Thorsten Blum Reviewed-by: Andi Shyti Thanks, Andi