Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6400486rwn; Tue, 13 Sep 2022 03:52:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5VkLv96xNe6JbW8Eq/S/RHupCUn9z7nVk4GzgQZ+DEBy3qyY6qwlP++GLnqinCg9iZY3H2 X-Received: by 2002:a05:6a00:24d2:b0:542:f6e3:e18d with SMTP id d18-20020a056a0024d200b00542f6e3e18dmr11400857pfv.36.1663066357643; Tue, 13 Sep 2022 03:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663066357; cv=none; d=google.com; s=arc-20160816; b=PcDazAwN0E/jt9XmIDs0cIzCknrK6zKUm9k79W7T3gbT6Cr57qmHRjHb6eYgaeXf+T RjW/dySBqIVKDFEFJMuDCmsJi1choMf+uXTVit/xA6YZJHI01l2rPMkmAT1HKq3MjZjp uC0ngnf4MklTxQly+4fd2At6adq+KfAKSEsiuGxB71Xs/eaQLR4NRKz4ko+OoChIxcb9 g6j5edzgw9EHehK1zSFsWSesfoDljH0/EkpLZdOwXYoRxbBxwJOOZbGpuHWRwPpEBqIC eWL2J8DAV+SRFpmPzw24+mVBuG7qkA8lV9zpa/YMkjpIHqOA78Z5b42ltmEb2nL8sgCW u5kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=x2zUmWpGbCpbwd7NLt+5E0b9jN1/vK5j0vP+reMG3OY=; b=LHnJX/PLecb1nimxhEGD48oXfyW7JNx+Ag9jArusUyFce3sz0bOUq51c8OcgBuy7GG n8rhGBF7w7jm5Dxt6joc9Z643C2xA2IOXySsQcrw9jK8ktwd0T+6yH7ufRGM/ozjlwDp 6G+JZGOAaeTl1M5fMpGd4CZhs8mAX7idY3rYwAtjrv2eGSgKnhkLHC9OnKcBxMkObztA 3I3f5EnI4UGjm6KMar4oVt3RoL2bf77O92Uom9mgCXfe/bg1E/lB+OiUGMfzqL0FGu/S RsVTLcmqdmuplnKgaAK/rZie3vfpTMT55oKDui3CqMWO8f+UfQUjCthZ6qxSqkgt9CGn n5Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KdXS8FaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63dc4a000000b0043853f7995csi305967pgj.161.2022.09.13.03.52.25; Tue, 13 Sep 2022 03:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KdXS8FaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231645AbiIMK0o (ORCPT + 99 others); Tue, 13 Sep 2022 06:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbiIMK0G (ORCPT ); Tue, 13 Sep 2022 06:26:06 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4EEF5A2D9; Tue, 13 Sep 2022 03:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663064762; x=1694600762; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ARgoLmEbhTA7goAGgTKJDoKZwOFyACEiJhXaXvPcn+4=; b=KdXS8FaZ+vo6T/5hCWIksLuwBH8PDMqbETvyIhOM6CCP+H7Of99znozS vlLiGDBKZlqAWH6jFYxZieVyHEjSc1P5Td/hID1sNN739bDGCZ87r7DBj jutysx4uZAoolU1+XVAM1WIJRx2bmrD7XLgLKCpIntE0qyydkScX6cQTW mgXJT1OJbYtkETtFs1JMxknEgSF7eFaECK5BILLaZWWs5rZCvOdDGnRH1 Pv9yA7wZyb0F73DnUNXjFM9BLvj/qHOKOSjzpN+xpeW4qAi+7ljndW/O6 GxN+L3yy/Us19t9mgFb2UYw5oHVJnKZiuOtjpJ2q2xeobuvdzXCe2RsPH A==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="359827124" X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="359827124" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 03:26:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="649609317" Received: from lkp-server02.sh.intel.com (HELO 4011df4f4fd3) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 13 Sep 2022 03:26:00 -0700 Received: from kbuild by 4011df4f4fd3 with local (Exim 4.96) (envelope-from ) id 1oY379-0003U3-1K; Tue, 13 Sep 2022 10:25:59 +0000 Date: Tue, 13 Sep 2022 18:25:10 +0800 From: kernel test robot To: Jianglei Nie , irusskikh@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: kbuild-all@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jianglei Nie Subject: Re: [PATCH] net: atlantic: fix potential memory leak in aq_ndev_close() Message-ID: <202209131828.hYRSPYF2-lkp@intel.com> References: <20220913063941.83611-1-niejianglei2021@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220913063941.83611-1-niejianglei2021@163.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jianglei, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] [also build test WARNING on net/master linus/master v6.0-rc5 next-20220912] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Jianglei-Nie/net-atlantic-fix-potential-memory-leak-in-aq_ndev_close/20220913-144300 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 169ccf0e40825d9e465863e4707d8e8546d3c3cb config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220913/202209131828.hYRSPYF2-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/e1ce8c41446db3a7dd59206ff9c8a75baf7be067 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jianglei-Nie/net-atlantic-fix-potential-memory-leak-in-aq_ndev_close/20220913-144300 git checkout e1ce8c41446db3a7dd59206ff9c8a75baf7be067 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/net/ethernet/aquantia/atlantic/aq_main.c: In function 'aq_ndev_close': >> drivers/net/ethernet/aquantia/atlantic/aq_main.c:99:1: warning: label 'err_exit' defined but not used [-Wunused-label] 99 | err_exit: | ^~~~~~~~ vim +/err_exit +99 drivers/net/ethernet/aquantia/atlantic/aq_main.c 97bde5c4f909a5 David VomLehn 2017-01-23 90 97bde5c4f909a5 David VomLehn 2017-01-23 91 static int aq_ndev_close(struct net_device *ndev) 97bde5c4f909a5 David VomLehn 2017-01-23 92 { 97bde5c4f909a5 David VomLehn 2017-01-23 93 struct aq_nic_s *aq_nic = netdev_priv(ndev); 7b0c342f1f6754 Nikita Danilov 2019-11-07 94 int err = 0; 97bde5c4f909a5 David VomLehn 2017-01-23 95 97bde5c4f909a5 David VomLehn 2017-01-23 96 err = aq_nic_stop(aq_nic); 837c637869bef2 Nikita Danilov 2019-11-07 97 aq_nic_deinit(aq_nic, true); 97bde5c4f909a5 David VomLehn 2017-01-23 98 97bde5c4f909a5 David VomLehn 2017-01-23 @99 err_exit: 97bde5c4f909a5 David VomLehn 2017-01-23 100 return err; 97bde5c4f909a5 David VomLehn 2017-01-23 101 } 97bde5c4f909a5 David VomLehn 2017-01-23 102 -- 0-DAY CI Kernel Test Service https://01.org/lkp