Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp42838pxb; Thu, 7 Jan 2021 18:46:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOfalXJPeV1p3oJIQj20mMJJG53Gsn4eyLTeZ0gF5Ssab8ITl+rsPxQ96u4YepZ3GGErkR X-Received: by 2002:a17:906:c45a:: with SMTP id ck26mr1265684ejb.200.1610073996104; Thu, 07 Jan 2021 18:46:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610073996; cv=none; d=google.com; s=arc-20160816; b=YfhLiUD9yifIeW9lkqmAkwMuoarMOIIbAry14JwrAZ2A5Y+NsNIYjrF/Xnt2v4toDE CD4so250KMNo/NPBNRqO5OncCZpmF7PyBjwkqPk12mLdPs13FiOuJRkQVmykeu6TaNFu IR3+E0KhbloqV4CidvCjb82Bbqk1UdUReUVJgnksJWAYT72JFTHNNYck0Y6qf/YZXjDl kvnD79Xb8o0TDCox0CnCZurgCzHhZ6y9ACAzzrctvIEZ4Db9d41t2tm42CwXZdH5Sklp n7aaUOi+OFbbCGhA5H2zhNz+IwO+5v+GbV7+Jux4sPEtHJ7ukklJrjfsYx3WOYFasR0Y tHKQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1/TMRA1QkuOZ2a+4cPpK9hubPgVEOc0YIuy9tWzr5PY=; b=ZtOQv9vuQ/+tjOfa7AARQM4vDZCnbHToe1lX4yyvEvvpnHh7S5oxr4+d5haknzjdVD mr4vD0cCEXXej3PYQQqhE0emZ6IMFKWZeAq+xrwggT48wcps8NkJlkA5H3J/8Lj8tkNg nzC9898dFT82yLHCtHaWE1M/U4+MWoUB6Hi1WZFjsQyy7eT4YRp8lvop11hPr//cVLaY S+FE6hVz3XkU6J/1KWy8L8LXvdeb73PaUrYi54z2y7alMyabZs2oQbQ7Z40RSIy782QZ po61VF60FsMprNCUfW8x2zWAmBB73AD+jEqA2V8jb2lqO6JXTtY8PneepF1hU6Ka9f8y kbPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A7EMmbKm; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si3036027edu.165.2021.01.07.18.46.11; Thu, 07 Jan 2021 18:46:36 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=A7EMmbKm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727236AbhAHCnV (ORCPT + 99 others); Thu, 7 Jan 2021 21:43:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:44592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbhAHCnU (ORCPT ); Thu, 7 Jan 2021 21:43:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77D3D23603; Fri, 8 Jan 2021 02:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610073759; bh=mAzFsBnALbRAw8MytA8IqEYz8JwOkyAkdFv/I7JONzE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=A7EMmbKmC826NcUu3pME4GN8RmQ0wH2YssQfkcBt0Z6xrDC7E2JGmqjVNOAqKzt8B cXe0KdWlOgcBYe9pNIrJcolVu0w5hSV6JSfXKQeJxL6WV1OpL4PsHOISXBExVIS8/k RWWUzHRZnVTEWLcjIznyPAl5raOMWWDtYDjFTiz5IuAOCvk66iwXj+PonU2ahL8SQn 9TM9GMQhWJgtN2vb/zMQOUU9YEmZXVHMoGUHvTxPXAdRRc+EZRKtD+nJPIi8je1OTb 6gBMTyRIStB9cIY5BnySOsL21ZhIkoPkNfE7kYVD0BuJPknrcnI3LXdivTJ9GAdtTO lI8IQF9GxDSLw== Date: Thu, 7 Jan 2021 18:42:38 -0800 From: Jakub Kicinski To: Sunil Kovvuri Cc: Colin King , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , "David S . Miller" , Nithya Mani , Linux Netdev List , kernel-janitors@vger.kernel.org, LKML Subject: Re: [PATCH] octeontx2-af: fix memory leak of lmac and lmac->name Message-ID: <20210107184238.36841971@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210107123916.189748-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Jan 2021 22:31:30 +0530 Sunil Kovvuri wrote: > On Thu, Jan 7, 2021 at 6:11 PM Colin King wrote: > > > > From: Colin Ian King > > > > Currently the error return paths don't kfree lmac and lmac->name > > leading to some memory leaks. Fix this by adding two error return > > paths that kfree these objects > > > > Addresses-Coverity: ("Resource leak") > > Fixes: 1463f382f58d ("octeontx2-af: Add support for CGX link management") > > Signed-off-by: Colin Ian King > > Thanks for the fix, looks good to me. Consider venturing an Acked-by tag in the future so it can be recorded in git. Applied, thanks!