From mboxrd@z Thu Jan 1 00:00:00 1970 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 AEF993FE65F for ; Mon, 11 May 2026 14:22:03 +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=1778509323; cv=none; b=M/deJt/Kaz/7JtbtoZkDGmPzpLxBskT2WEU4iPg144IovTA7zazCFM2KgKivXG2R75ojLoMp9nQuZlrsdt8ZolGKXWRZifbvwSuMRnwovaamVtUuZclEsExmraUPhFtTZaN/tiMd6xm/qs0Y7SVWH4C1uUzs5tRTuUa87xZzK20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778509323; c=relaxed/simple; bh=vDYM9TJw2SL4NUudffta7kMxKBW8fLtS5XbiKYoN1iI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J8K551U/y4UQbNrdF/093iPkNnW2wHcoJKSvc4zOZUog6Ossup7uvDT1TaIdLoZHi7gBKDYiA2oolS0/w0M09jZ7uh1eg6gJ3+3utpEMSYn+u3KEF60eBLTT/comz4VoriQ5BR/5jaTEEylGQclTCrjUJRN4/ZFYwW82hNzpjXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=POzJJkgv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="POzJJkgv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E3FCC2BCB0; Mon, 11 May 2026 14:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778509323; bh=vDYM9TJw2SL4NUudffta7kMxKBW8fLtS5XbiKYoN1iI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=POzJJkgv3zrYWSyXs7zbKoKJ7efyDBh+4IdY+j4QwhqtD8o+Axto+n+UxntNqrmoc 5pZoI9Y7wSfGnOYTysrRvytFYl5ERgmStKePbhkf9megMqBeqGJhpgX13zqE1Yeyhj EOhRSE4aybb28RN48j/ep8kHP5eUovf78rPVZVqvVoBsq8Af/2JSAZt7h1nh9Ol692 tfX831yJYPVatCJTdbjoZNMJ7R4dVQxoInA+RmuzaDrOusPL55yVhoIYwDdHZZVIbp EBLctOhv3kMJuPUgMtMQn2NYx8ZTWQttzoHs9K0flHnfF980SmXsulpVO9PQhDoVuO Qw2nSuhqllDXg== From: Sasha Levin To: zilin@seu.edu.cn, pmenzel@molgen.mpg.de, aleksandr.loktionov@intel.com, sx.rinitha@intel.com, anthony.l.nguyen@intel.com, stable@vger.kernel.org Cc: Sasha Levin , Rajani Kantha <681739313@139.com> Subject: Re: [PATCH 6.1.y] ice: Fix memory leak in ice_set_ringparam() Date: Mon, 11 May 2026 10:21:53 -0400 Message-ID: <20260511141441.stable-reply-0004@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260511092213.3267-1-681739313@139.com> References: <20260511092213.3267-1-681739313@139.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, May 11, 2026 at 05:22:13PM +0800, Rajani Kantha wrote: > From: Zilin Guan > > [ Upstream commit fe868b499d16f55bbeea89992edb98043c9de416 ] > > In ice_set_ringparam, tx_rings and xdp_rings are allocated before > rx_rings. If the allocation of rx_rings fails, the code jumps to > the done label leaking both tx_rings and xdp_rings. Queued for 6.1, thanks. -- Sasha