Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2153692rdb; Thu, 7 Dec 2023 22:36:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHprDtb+2BpgdLM/Ll3a1L5WTqhMcxYxCKdAIfoGOQ3xdKMrghzATAl0MPhlvgLP3r0BV1v X-Received: by 2002:a17:902:e846:b0:1d0:c7c6:91a2 with SMTP id t6-20020a170902e84600b001d0c7c691a2mr3645409plg.100.1702017368260; Thu, 07 Dec 2023 22:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702017368; cv=none; d=google.com; s=arc-20160816; b=iGCc6JS+P1mTHli5y094qLFAb03Z1x9UNhm8vMOAaWK4VLQ5F2c0mIl5qGcM6kuRz3 afVMAL6ZffQYc5ZVQpF6JgxW/66re4sMh/yx683S4WMpo3zlZc8n1Gg+J5LEpEHwJzvd rHJfM51YWSdW3EXZgzDx251ASWZT7hPoosxKa5bABsl47LuT/OjsK636oBrzWfzKaheB napfgeoPMPRYL1EUyz/n0M3eGmr+HkFlPs0kry0B9/2Tu0PnQIEjU9khPnBm21FurQQ5 r6zwrfVolx5SpIfKBVjrVWKlv+FE9knHFL/t/3wajS/zQ6Fa/QfC3AL6rYhID/xezkif aaog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=9X/bmOFeV6g5Cja431uAdOLHoNA+t6QtpXFe9hUjVfk=; fh=C1EBy8qSApH2haLeZFGiDYRPItHIHHETiSNPG7+eJVU=; b=zu+kEdVKca+rP4f7yJV6BqrqXjd8lGYE2tJk1ImtbinurXpFMTGjLDy+iYpUuIW8n2 ezLCOyWj/NgQ/XNHxwlL82PfRpl1Tn7CK8yfN+lzXfUNGDjpsuWIAirVjFtoXA5kZ4hT aL4PHZoAdbqcYMrMynR2F3FswS0iL60SUeDbF5xcowdRjkOC0IKwfCHnEjJyt1xqh8g6 e3KjIHcyCZQhsvvW96n9TAb3VTLeS/1RwnHn12MlmP4OjEWLz9jcJgW213S9RmMby1Wz rXP2N/+fYlnQSk4Glw0zVW4MtgBtloNTveFVh8MgDjncDKPjxB7otMsHrKtc6zXoq9+b dI4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p6-20020a170902b08600b001d0acd492fasi1048140plr.512.2023.12.07.22.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 22:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A16EA809926D; Thu, 7 Dec 2023 22:35:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbjLHGfV (ORCPT + 99 others); Fri, 8 Dec 2023 01:35:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbjLHGfS (ORCPT ); Fri, 8 Dec 2023 01:35:18 -0500 Received: from zju.edu.cn (spam.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45953172B for ; Thu, 7 Dec 2023 22:35:20 -0800 (PST) Received: from dinghao.liu$zju.edu.cn ( [10.190.70.178] ) by ajax-webmail-mail-app2 (Coremail) ; Fri, 8 Dec 2023 14:35:15 +0800 (GMT+08:00) X-Originating-IP: [10.190.70.178] Date: Fri, 8 Dec 2023 14:35:15 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: dinghao.liu@zju.edu.cn To: "Ira Weiny" Cc: "Dave Jiang" , "Vishal Verma" , "Dan Williams" , nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvdimm-btt: fix a potential memleak in btt_freelist_init X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.2-cmXT5 build 20230825(e13b6a3b) Copyright (c) 2002-2023 www.mailtech.cn mispb-4df6dc2c-e274-4d1c-b502-72c5c3dfa9ce-zj.edu.cn In-Reply-To: <65722f2a94d68_1c7b6229452@iweiny-mobl.notmuch> References: <20231207034332.24107-1-dinghao.liu@zju.edu.cn> <23a91617-4562-4399-a8c6-df2f3f28c7a9@intel.com> <65722f2a94d68_1c7b6229452@iweiny-mobl.notmuch> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <7205fcd5.258f3.18c48233162.Coremail.dinghao.liu@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: by_KCgDnDiojuXJlaQReAA--.20505W X-CM-SenderInfo: qrrzjiaqtzq6lmxovvfxof0/1tbiAgMDBmVxlxQ-zwABsi X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 07 Dec 2023 22:35:36 -0800 (PST) PiBEYXZlIEppYW5nIHdyb3RlOgo+ID4gCj4gCj4gW3NuaXBdCj4gCj4gRmlyc3Qgb2ZmIHRoYW5r cyBmb3IgdGhlIHBhdGNoLiAgVGhpcyBjb2RlIHNlZW1zIHRvIGhhdmUgYSBmZXcgdGhpbmdzIHRv Cj4gY2xlYW4gdXAuCj4gCj4gPiAKPiA+IE9uIDEyLzYvMjMgMjA6NDMsIERpbmdoYW8gTGl1IHdy b3RlOgo+ID4gPiBXaGVuIGFuIGVycm9yIGhhcHBlbnMgaW4gYnR0X2ZyZWVsaXN0X2luaXQoKSwg aXRzIGNhbGxlcgo+ID4gPiBkaXNjb3Zlcl9hcmVuYXMoKSB3aWxsIGRpcmVjdGx5IGZyZWUgYXJl bmEsIHdoaWNoIG1ha2VzCj4gPiA+IGFyZW5hLT5mcmVlbGlzdCBhbGxvY2F0ZWQgaW4gYnR0X2Zy ZWVsaXN0X2luaXQoKSBhIGxlYWtlZAo+ID4gPiBtZW1vcnkuIEZpeCB0aGlzIGJ5IGZyZWVpbmcg YXJlbmEtPmZyZWVsaXN0IGluIGFsbCBlcnJvcgo+ID4gPiBoYW5kbGluZyBwYXRocyBvZiBidHRf ZnJlZWxpc3RfaW5pdCgpLgo+ID4gPiAKPiA+ID4gRml4ZXM6IDUyMTJlMTFmZGU0ZCAoIm5kX2J0 dDogYXRvbWljIHNlY3RvciB1cGRhdGVzIikKPiA+ID4gU2lnbmVkLW9mZi1ieTogRGluZ2hhbyBM aXUgPGRpbmdoYW8ubGl1QHpqdS5lZHUuY24+Cj4gPiAKPiA+IEhvdyBhYm91dCB1c2UgdGhlIG5l dyBzY29wZSBiYXNlZCByZXNvdXJjZSBtYW5hZ2VtZW50IGFuZCB3ZS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