Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp949016lqm; Thu, 2 May 2024 00:01:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjykI3Tp15xp4JfGOVSCTdGZ/hojMnzFBwuUsRLeuQ7Em9YRb9g9ID5azrV/MHcAjQZd9fOLs9BS4XibX/Acx7hkSMc8fr3w0/pEDckA== X-Google-Smtp-Source: AGHT+IHm17GTIGY7gQc5KKD080YhCnWAMqMZ2NPgUEqlAODq8TaXMvX5TacHiZ8PiFXK9o40PFd0 X-Received: by 2002:a05:6a20:974d:b0:1ae:4266:b39c with SMTP id hs13-20020a056a20974d00b001ae4266b39cmr2400401pzc.17.1714633279396; Thu, 02 May 2024 00:01:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714633279; cv=pass; d=google.com; s=arc-20160816; b=nZEW3SK+AfreMwqDyiV9WKQKD3echR3QjLEOOm3darY31JmY1JfGIhe90+HfJsAhse ZExSYT8eblz1L3+nTDMXKhY05zQ+uHto2yyOZd5H/j3gIldFiVmInxYf6GU3ylG2nLvN 8LLqWC7JHPil8U8YJII0i0qgfk/impnV+XLIsw0e+G/2Kg0CB+R/bpi93o/o5aTRQh1f V0sWsKx0ZI0JiiCP3OenOwP0eGdN4WqG+2GEPbVv4u92gfgkRzuK/AhE2rg8/PHnA7Mp 2wjOmcPL+CgqiBwW1A/7dgfTCrdnzVmL8+PbRe26rlNtCeQhvB3u7VVL2IeZT2WYImWh a91Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zn0AU37unUAGgQKpTRiKCU79v6Wbl71XirUxH47D8f0=; fh=jjQz8WwmVxcBzQlUfjcYwUJ9DwAe+8KddWpBFuwN9Bw=; b=tNMSsZ/F9F3tFxubhgNT3slBgonHk/52AfWtgiDlOkkKfaq46QYI4ECDpniljOFSUW Zh1em2BSGKDqHbrm1x82iiGqwuw1CuEUpF+RiFpN1arpXlldA+w7bS1M06DYj170iWVV lspFHRufgGd71D1hYYmto3yLNs0yzMUEQscPD/e5akH2+F9mBfH0Jf4CfTqaewXikKHN 9IKT+GAxaMMiZXXpMeWrdF3ERsz80HzqoOG6/K0VUolxu1MSWgBsWXp5lz3lvM0bPisc feEh9ZzLfInolQVQ9VqHfYBZERXnPZu/TUHWPCgwHAjPP2WjToFHvTKDrfNvskUyL02l au+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MUz/HEQD"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-166029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id dq19-20020a056a020f9300b005f0565d9bd2si454107pgb.364.2024.05.02.00.01.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MUz/HEQD"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-166029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0AF782829A7 for ; Thu, 2 May 2024 07:01:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADBE62230F; Thu, 2 May 2024 07:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MUz/HEQD" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 480AE1527BD for ; Thu, 2 May 2024 07:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714633270; cv=none; b=uYtEUh6U3Nj8EtrxuBQ6Mp/zEcAaFdPI2N8+SnIRHUNICqUUS8V9rwt4943uHaWjigMQUAYbinPPUrIsS56vPQLNIkGLcnRt06zi7zaOrdxgjnlUZX3MgVzsEGquT8J+4scAvjoRm3QgbBnaw4artCD4IbIp5q5x6zy+vPlEbog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714633270; c=relaxed/simple; bh=vR/vR3KeKWogJ1nIbprfh0Pi5nYPDFEvYQrVJRHP80Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gulX+CCnQP4s+REOixbg7rrjIuWuMoxNaxhUO+eZUAOJT2PdsfiBGKeV9uAjobXwkBJmrFYY42JNMyQi6Fmx+eOqhAi3djzDgNy98Cc7g5ifKeseSwHJmdzsFdk6qwTqShlqeLRHc70UG6P2OM8rPFmaCzm+7emLM4KLfNHMALA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MUz/HEQD; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51f0f6b613dso640491e87.1 for ; Thu, 02 May 2024 00:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714633267; x=1715238067; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zn0AU37unUAGgQKpTRiKCU79v6Wbl71XirUxH47D8f0=; b=MUz/HEQD1WvFMfu54NsNAkQaOdAOrwfWtLoVBnDXTnkytZ9dEs1Ks3m72VkzX5ohvK QhOwdaRwmz+kDefE2Iu9SittJHzGfFzwpD4maLLYc1c3sYD4QidexStZtSkDr+/IB9Dg AGhWm6wPPMVzl+EhfwvSZ5Wktwhm73y/Zx+CL4M3fCOuLnHQ7vWIw1C9bzv2cRTB+h3x szAP1vtP7nJceabWJi8ShCcloRvdsxqu9WqoLoM3nYAQexRQVXdmXYKB/fbcn1atSZSK dn4UKP/Otdg4hWXa7gsu6NsQFaeY6s8Dmyo+VWOx5QoppW+r4DK4HKZAZOaQYHWVwo90 +G5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714633267; x=1715238067; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zn0AU37unUAGgQKpTRiKCU79v6Wbl71XirUxH47D8f0=; b=wtvmNGZVnedADbRsCZjV1Vp8mJJhNHWk9Or4YuB0K0hAoOWOgVptKLA20jneV7eWwZ 2aHaqHvl3ZSxnyytGQ8yApQNVeMWQ39Ftpr1S3Rns7ybGRPslO/QvN6ERPNROh/9WcsG xh7O1okSqCigb3kT66e98OLi8bLK3GEKIKVflRzq19V8fCougUKSgAcP+wUqoI23etjc ok/UBVQOshHDR0ndTJ4AT6eElGVjBTSubFwmcDk0+/TnatZxlW1OkRFGCJods9b/MdQs XxEXT2H6DxhZrI+HHpu3Tthr3Jc0wPnWyFp+9ZFmddoaqaHrCg2KB3VNn1JB9xQPS2FV QoMA== X-Forwarded-Encrypted: i=1; AJvYcCVYTJc3U7WHEyzhNyw0uTneGc2m6zJCs7KOZzXr4I6VoL7not6/oWpREV4m/6eGTrxd1mSlf9fkoHSG6Edeoflz7wFx2eivKYFpcpKJ X-Gm-Message-State: AOJu0YzrB9K8ql+C+qjquT4J/jIEy+vc+/PInkasU4EWKKfnH+X7PMWk CehTBut414c9r6K5HA84Qv2YDDapLWnWWv7upfAnKkbj2iW6Lz0+CQH0TY9/JiM= X-Received: by 2002:a05:6512:3ca7:b0:51a:cafd:3872 with SMTP id h39-20020a0565123ca700b0051acafd3872mr3624984lfv.3.1714633267220; Thu, 02 May 2024 00:01:07 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id g4-20020a056512118400b00516dc765e00sm65046lfr.7.2024.05.02.00.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:01:06 -0700 (PDT) Date: Thu, 2 May 2024 10:01:02 +0300 From: Dan Carpenter To: Simon Horman Cc: Geetha sowjanya , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, sgoutham@marvell.com, sbhatta@marvell.com, hkelam@marvell.com Subject: Re: [net-next PATCH v3 3/9] octeontx2-pf: Create representor netdev Message-ID: <054bf59a-7123-4d97-a0c1-0fd8ca271b2d@moroto.mountain> References: <20240428105312.9731-1-gakula@marvell.com> <20240428105312.9731-4-gakula@marvell.com> <20240501180656.GX2575892@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240501180656.GX2575892@kernel.org> On Wed, May 01, 2024 at 07:06:56PM +0100, Simon Horman wrote: > > + goto exit; > > + } > > + } > > + err = rvu_rep_napi_init(priv, extack); > > + if (err) > > + goto exit; > > Even with the above fixed, Smatch complains that: > > .../rep.c:180 rvu_rep_create() warn: 'ndev' from alloc_etherdev_mqs() not released on lines: 180. > .../rep.c:180 rvu_rep_create() warn: 'ndev' from register_netdev() not released on lines: 180. > > Where line 180 is the very last line of the funciton: return err; > > I think this is triggered by the error handling above. > However, I also think it is a false positive. > I've CCed Dan Carpenter as I'd value a second opinion on this one. > Yeah. It's a false positive. regards, dan carpenter