Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1855727ybn; Thu, 26 Sep 2019 03:16:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJEq3hrNggGUsklLlKjqeUGEHneId3oA88FXyM/K340w11WulA5JVNvsrXCBWQvyh64dJW X-Received: by 2002:a17:906:79ca:: with SMTP id m10mr2300820ejo.292.1569492983501; Thu, 26 Sep 2019 03:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569492983; cv=none; d=google.com; s=arc-20160816; b=iH0JdA6cy/lnYtelrDyeejwFK0oZ/dnasK6EaKWTJ6jME7qSIZZMqk33nt7B2d0t/p wP/RLXVU5ZEcbmTgbq9U1s7b8aeiqvL4n19HkZIz+BNb4tZ3GSc6VJTs9ddBiJVv5JBV G7CNXcH2PViMvy2v8l6gtx3JW03f9MXPZEykBmSmNLrKoiMjxmHP3UFxQPI5ZuNGOhF5 N28HFiDqzoFtFpDnmWTF2FXzv3RG4x4sKSqOmv5Xjg7AGB9FsNTy+dv2ZDHfgeMtLsel T+1zhZX9l1cPNONnAwn3vpfzbvCRjGhXn7GhjRqQ1pw6mBTKuQIRDfmb4RW4n1RJpYbZ oXbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=22PGlG1vlAQyFCiQebzwvuuzTz1/kfVMRIZpfQyyRLo=; b=M7kTVS6Qesd/jBLNAPfw6/+hp/QTq7ugvrxDzDPfaFHUJK8lAtSLuwVlgSw3byuZ4S /NwTaBfNecW+T1nfU84SceUlYN99p/N/PMZpurlhFgPsArx+N/TB4K1/D9bl5l/0A5fM yQ9lypSlndxZfL0UeIBq5RcjVdB/WOgIZ0pu5XREmkT+9Nvy++giIKWGpcGbmUbeL5ZH Lh3fkI24KYv75sg74wpqRr3WvgZ3IXcWqD5XJsoKf6rHPGSNTfpMGg0xGDzZXzXRyZq7 Nl0pHN31lR4flK5XqSFaWi1LylUwk+VNXSTwLKdJJS1M322oKM03R4ci1E7OTcUw4/cq WUFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="zgig/tf5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si745745ejr.187.2019.09.26.03.15.59; Thu, 26 Sep 2019 03:16:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="zgig/tf5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388386AbfIZBXv (ORCPT + 99 others); Wed, 25 Sep 2019 21:23:51 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42804 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbfIZBXu (ORCPT ); Wed, 25 Sep 2019 21:23:50 -0400 Received: by mail-pl1-f196.google.com with SMTP id e5so257427pls.9 for ; Wed, 25 Sep 2019 18:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=22PGlG1vlAQyFCiQebzwvuuzTz1/kfVMRIZpfQyyRLo=; b=zgig/tf5Sz63yHXZf5ykSXhEvaJExJ8pTMIiFFPmAJSIeFQGcrAt4VlvMXucQ0d+Y2 ISX1JfSdCrX9xp9kGJg9HeL7lEP1qZMzc0o0xVd/Fc18a1p5Ei2FkN2mdV615Wv+MlzQ dDJ/0b2kTmM+581Ld3pvAhGYzggVaLsuV19R3M6mwju9byc5+Der28Y5XEnd6TWCJ83M x0IcLhy4OSf9S8AMiTS8ZVW4ZfSiqC2B74p54qyvTAef4D6L3enZi+iOwj82niZ7IhFc fVen3QoId07DeV4lfNeiuf4t+68kb+cStWH/wc0bkgGI7n58v3vfQ6TU4Xh+eM9yecI0 JOaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=22PGlG1vlAQyFCiQebzwvuuzTz1/kfVMRIZpfQyyRLo=; b=DyXdAqM53MI3DMPxbRvAnDYiy+2RNTLstyG+rEk4LfyoeVGuQrVviOdlBgsSczm2Vr t476t463vnN171v1CUsg3tEybmGdGlYs20BcXfWZ99iinHGVR4E3FB1w2DrE51SiWvAK VOBny6s+gAVVEg76I8q7IbX06Yir6Lsif99J14RvUtuf5jSaaZOI6YhApQ5SuNRYaDRk WnXhJXM/sp6MXdhOFFCQ4oKf52i5VQYvpcBSgPHabfH/GWM6FsVMwhsc7fgBF6pjP9ac zUgUvvpMIzYzkXxEnpKsl3QaXTt6IF8k8SG4t5RcqLIqhzAgRrgGB8jKceXHyC/HNe+Y wd5Q== X-Gm-Message-State: APjAAAWSqxzsquexHrPrsOPAOXjPk/RVRsHc+PN2lyYZ7KJTVnteRfES veV/zfR3H2QGQOM/62Q0DxXFew== X-Received: by 2002:a17:902:8d8e:: with SMTP id v14mr1077815plo.287.1569461030065; Wed, 25 Sep 2019 18:23:50 -0700 (PDT) Received: from cakuba.netronome.com (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id t3sm308272pje.7.2019.09.25.18.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 18:23:49 -0700 (PDT) Date: Wed, 25 Sep 2019 18:23:47 -0700 From: Jakub Kicinski To: Navid Emamdoost Cc: emamd001@umn.edu, kjlu@umn.edu, smccaman@umn.edu, "David S. Miller" , John Hurley , Simon Horman , Pieter Jansen van Vuuren , Fred Lotter , oss-drivers@netronome.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs Message-ID: <20190925182347.5a509f47@cakuba.netronome.com> In-Reply-To: <20190925182405.31287-1-navid.emamdoost@gmail.com> References: <20190925182405.31287-1-navid.emamdoost@gmail.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Sep 2019 13:24:02 -0500, Navid Emamdoost wrote: > In nfp_flower_spawn_phy_reprs, in the for loop over eth_tbl if any of > intermediate allocations or initializations fail memory is leaked. > requiered releases are added. > > Signed-off-by: Navid Emamdoost Fixes: b94524529741 ("nfp: flower: add per repr private data for LAG offload") Acked-by: Jakub Kicinski