Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp22658pxb; Tue, 12 Apr 2022 15:41:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsb89HBwRApxqSFWt/QMk7rgRWPXGn05Nrou4PAGdgCLS3ef273GPikfyrsbanJTQ6pj1b X-Received: by 2002:a05:6a00:983:b0:505:d929:b135 with SMTP id u3-20020a056a00098300b00505d929b135mr8671344pfg.25.1649803306355; Tue, 12 Apr 2022 15:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649803306; cv=none; d=google.com; s=arc-20160816; b=KEYimP9JHL/L1FY+/2Ivm7eEZ8gTqSJKLoclm6YawGtIIhRr3wxFTnhT3ZiE4TAPxu jckcN/h1nIUcheL/Ev6rAqZNTNFWJwZUZCcwk6ap+XfgN6YCL/fWwLtk+iT3gze0nZEt XTpmcNRa9n5Vf0aRNTBWbXpwUDRfUUL1QT/rEAJ9EJgHP9jFRy9dZ8m5FDujlOhnMZWW QRUMI/t+bOC4UmzwXTSyN3T2QxcP1SlCI1GrQEhzfI3NvbMq4Hr++8GiNys1RfzDUYqs /iluTX2iJfO49NTpUOA2rhZPZSbRy6Fngo0ilXlB8l3EnC/EL2bUJEXP2Huoh8sLhvMI fwHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nrV286s4+7Wh3t6SEnUClWG3+HfZnvbG73qQOgjlNLc=; b=dMkLdEvyOUS95pyi6ELJZ2NCv1nbX4SBnsE3nLv0/mA8soVRAFmU5NkuCeCOqz4K9M WcvdthE41voIo52zP8e51+b6gjEjwCVfLw/O+w1FifcZnXeCbCoTp5zOi8rFXkTLIpsK 6857XSX0FwuA6xLHPY8ml4QCwHSq0vOlpqotxCR68ndsmTwnM3sw9YyxPUesuZe99ohn Z3tDH+Asmj8rTJ2f79paNCF+DYrxEOoVGfucq62HiUDL70RT5CapLZTxiGFQoq7Dt9Y5 8xieY19iwHGGsbSshZHk19n9kn5dtpjgtgtXbIUfp9k7BFxyXMDpZ4hHVX+SCMmqUM5y WZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cCnGfTyC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c18-20020a170902c2d200b00153b2d16511si12148338pla.281.2022.04.12.15.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:41:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cCnGfTyC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90CE21AD1CF; Tue, 12 Apr 2022 14:20:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357920AbiDLRDW (ORCPT + 99 others); Tue, 12 Apr 2022 13:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350788AbiDLRDS (ORCPT ); Tue, 12 Apr 2022 13:03:18 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E687C5EBE0; Tue, 12 Apr 2022 10:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649782861; x=1681318861; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BCfmgdg71xvN/+hNhLnF47iZIeJ9/zDt7qxQb/MMVX4=; b=cCnGfTyCex6bZOyQ0zaSu3jz3aV641iQPn3MIoyofaKY00E+Wwm6bCCh c3HGg0tipTHSGUSbmFpM3u0fGYZX2qfWjRL1sxYgckY6J5O/Mo9ANWzDc 1XwAn2bDTEpugLHeu9b9yaYo2AblrOVOEiNesw9aZxHxpnvPEqSE1Ow4a aCupXgXPiOcGQlFjdWRrArBwRLKdx9mRxdkyaq9KaWKakWHRD0uGdf7RZ vlGcQwKGvC8ALoTcvdD2g919aysvioxg0j63QlB5PrQlCiJNCSkP+WoTm sHaBIDDZSEi3s5DUfB6Lxifzad0D46bw4vpSwmWN9O+tRaRl/gvffiBgU Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10315"; a="325349814" X-IronPort-AV: E=Sophos;i="5.90,254,1643702400"; d="scan'208";a="325349814" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 10:00:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,254,1643702400"; d="scan'208";a="724536834" Received: from lkp-server02.sh.intel.com (HELO d3fc50ef50de) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 12 Apr 2022 10:00:40 -0700 Received: from kbuild by d3fc50ef50de with local (Exim 4.95) (envelope-from ) id 1neJse-000311-6b; Tue, 12 Apr 2022 17:00:40 +0000 Date: Wed, 13 Apr 2022 01:00:13 +0800 From: kernel test robot To: Duoming Zhou , krzk@kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, davem@davemloft.net, gregkh@linuxfoundation.org, alexander.deucher@amd.com, broonie@kernel.org, akpm@linux-foundation.org, netdev@vger.kernel.org, pabeni@redhat.com, Duoming Zhou Subject: Re: [PATCH 2/2] drivers: nfc: nfcmrvl: fix double free bug in nfc_fw_download_done() Message-ID: <202204130040.8kwehlO8-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Duoming, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on net/master linus/master linux/master v5.18-rc2 next-20220412] [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] url: https://github.com/intel-lab-lkp/linux/commits/Duoming-Zhou/Fix-double-free-bugs-in-nfcmrvl-module/20220412-203028 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git b66bfc131c69bd9a5ed3ae90be4cf47ec46c1526 config: i386-randconfig-a004-20220411 (https://download.01.org/0day-ci/archive/20220413/202204130040.8kwehlO8-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project fe2478d44e4f7f191c43fef629ac7a23d0251e72) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/1f4dba76cb2e854d8ae29781d066257f58b33dee git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Duoming-Zhou/Fix-double-free-bugs-in-nfcmrvl-module/20220412-203028 git checkout 1f4dba76cb2e854d8ae29781d066257f58b33dee # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/nfc/nfcmrvl/fw_dnld.c:120:6: error: use of undeclared identifier 'dev' if (dev->fw_download_in_progress) ^ 1 error generated. vim +/dev +120 drivers/nfc/nfcmrvl/fw_dnld.c 92 93 static void fw_dnld_over(struct nfcmrvl_private *priv, u32 error) 94 { 95 spin_lock_irq(&priv->fw_dnld.lock); 96 if (priv->fw_dnld.fw) { 97 release_firmware(priv->fw_dnld.fw); 98 priv->fw_dnld.fw = NULL; 99 priv->fw_dnld.header = NULL; 100 priv->fw_dnld.binary_config = NULL; 101 } 102 spin_unlock_irq(&priv->fw_dnld.lock); 103 104 atomic_set(&priv->ndev->cmd_cnt, 0); 105 106 if (timer_pending(&priv->ndev->cmd_timer)) 107 del_timer_sync(&priv->ndev->cmd_timer); 108 109 if (timer_pending(&priv->fw_dnld.timer)) 110 del_timer_sync(&priv->fw_dnld.timer); 111 112 nfc_info(priv->dev, "FW loading over (%d)]\n", error); 113 114 if (error != 0) { 115 /* failed, halt the chip to avoid power consumption */ 116 nfcmrvl_chip_halt(priv); 117 } 118 119 spin_lock_irq(&priv->fw_dnld.lock); > 120 if (dev->fw_download_in_progress) 121 nfc_fw_download_done(priv->ndev->nfc_dev, priv->fw_dnld.name, error); 122 spin_unlock_irq(&priv->fw_dnld.lock); 123 } 124 -- 0-DAY CI Kernel Test Service https://01.org/lkp