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 C3A02274FD0; Mon, 20 Apr 2026 22:00:24 +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=1776722426; cv=none; b=iFAdQisl5ZEcYdzA6udSoiNYONtd+blP9wNnWbL3LZGYUNHVtfTD3tOZlzlK5AqijdGMmiHFdB4B6V5A9VssL17YSJEwyuP8RCEmuhWF1V1PKAGd7gnD+myY5cg54+D20hgzVG3EuzWl724kh0lfUtXOSgbHz8NndKspQVvqDNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776722426; c=relaxed/simple; bh=oHaDKe4pfNjvvj0Ijcm+SiMZhGHTBipXa16iV4hH07A=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=cbwqzgpqnhmBb27pq9XFfs8MnLDv08gN3qjInApLRZeoAqJIksYJZ/fju2BlrPis7Blb0z3fburfbmTpxK72CdgZxQKAVzjNb7XsCG/CRSDOu0eTHoSHZwKxtegD+G4JiCM4OqcEMkbE8kX9DrhVWkF/bqHi1cKk9V/cAN0WThY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=btajVv++; 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="btajVv++" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F16EC19425; Mon, 20 Apr 2026 22:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776722424; bh=oHaDKe4pfNjvvj0Ijcm+SiMZhGHTBipXa16iV4hH07A=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=btajVv+++pG+ETuXRzn+QGDbq7nIFEpnj9ABNytobsxXw1oKVzcy067+pVpIHP6Nw MBgIfpkOy56Vxc7NOJJtOvs3FoAWYrejOrOp9sdAF4dHNutloI25bABavL/4BVz9XS xgd3E/Kgcj4BaqdE8ukKY3da7mUGVwq1/vpWCvEkL+aIpixCCPsDdCwvipQ4/7FpX3 XoAjXpCJ4k9sF/is+IggicpwmdsB2eX3qRPL6E6uy2e9P5y7mqgOhuivoImg9ry3Wv M41in2i92Xif5OGpzcBWcoC81o0QCkd+y1i6UMorA0GTX6YIklqpemVpH1ZSTdW4jd Z+pzo2vkBupGg== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 0313D3930022; Mon, 20 Apr 2026 21:59:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v1] net/mlx5: Fix HCA caps leak on notifier init failure From: patchwork-bot+netdevbpf@kernel.org Message-Id: <177672238865.1802062.5421654335000570916.git-patchwork-notify@kernel.org> Date: Mon, 20 Apr 2026 21:59:48 +0000 References: <20260415005022.34764-1-prathameshdeshpande7@gmail.com> In-Reply-To: <20260415005022.34764-1-prathameshdeshpande7@gmail.com> To: Prathamesh Deshpande Cc: saeedm@nvidia.com, leon@kernel.org, cjubran@nvidia.com, cratiu@nvidia.com, tariqt@nvidia.com, kuba@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 15 Apr 2026 01:49:37 +0100 you wrote: > mlx5_mdev_init() allocates HCA caps via mlx5_hca_caps_alloc() before > calling mlx5_notifiers_init(). If notifier initialization fails, the > error path jumps to err_hca_caps and skips mlx5_hca_caps_free(), leaking > allocated caps. > > Add a dedicated unwind label for notifier-init failure that frees HCA > caps before continuing the existing cleanup sequence. > > [...] Here is the summary with links: - [net,v1] net/mlx5: Fix HCA caps leak on notifier init failure https://git.kernel.org/netdev/net/c/d03fc81a5795 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html