Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp419877rdb; Wed, 20 Dec 2023 00:33:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZimLc4OmKdB58/dkN6+Cgtm/wN9IpegGug80U1+MK8VtF0dPC7oPbq9cyYvL5X1rILjli X-Received: by 2002:a17:902:7803:b0:1d3:c177:3166 with SMTP id p3-20020a170902780300b001d3c1773166mr2940275pll.79.1703061195604; Wed, 20 Dec 2023 00:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703061195; cv=none; d=google.com; s=arc-20160816; b=oumBO78WD/szK2ZqT+mYdazBJbtrujlfw5b/mWUwxcHr6zQJVfe2OjPuShr0j/w7nX Y3M/GvLckLTpBNPKhzUGtv09meUYpOZbaV1WTGisVzkVQT66z12pQtgiT1hcf+tQTjJY 5Ugq+2PpG+olY+KpuUul1RUk3+JXkFD1CXv9cVFMRJA5vBhgwlweYvqlRKnHrQxjnSv/ 41Edm9oQ2cQ34xPr/y8Xc1XYjpIRTj1p2Ur2DVhGv7sLlivXGRA8T1wDZBPaapzIeKlW bN8WPfrFAZKvcgnzJhtfPdAa8ZjrpqOYh1vjrOw9M7Cn5Bmftf5cWcP/z9PNXSPyz3l3 IkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:content-transfer-encoding:references:in-reply-to:subject :cc:to:from:date; bh=DR04UTKxbgssjcluTNh4+Ch070xkgPBn1fc/Y+bC5FI=; fh=cR8nws7MByeaeMF5pZ0EfLUT2p6eW2t17IXIYlnZiOY=; b=Lwneto2N6a/bEzHVW2bp4U8bMYe2VL5DXw9jW2oBSSZw1BuOmzY2PmaZJjlvR0jfJ5 2LgVZQQq6T0+JE09HrzXnK7dEkeZQrfTEgvgP/0tB/E1Bg5Dh4v1rQgz80zUZ5HwStIt xRyJeYlExWrn5jICplRpx89/8rCxuMdgQA3MsVvWH1FBwvJ8wS7yUGJACtQP8f0eAoSl G1krxO2g8E2YS4V7oLw2WF4bQusbNZihsLketBnOOo7vZfUE3AJ6OHizZOJ+PLU02P3w q9MsHFpDo48UAECN9h+r4h3Sg/w9za3iUj29HnhnzWAfH5v1fCvBrFZUJ1ILCZBpXlHC Ca6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6575-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l4-20020a170903244400b001d09278b856si21733217pls.347.2023.12.20.00.33.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:33:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6575-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DB19CB22481 for ; Wed, 20 Dec 2023 08:32:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 444391CA8C; Wed, 20 Dec 2023 08:32:11 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from zju.edu.cn (spam.zju.edu.cn [61.164.42.155]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A121C686 for ; Wed, 20 Dec 2023 08:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zju.edu.cn Received: from dinghao.liu$zju.edu.cn ( [10.190.71.26] ) by ajax-webmail-mail-app3 (Coremail) ; Wed, 20 Dec 2023 15:52:43 +0800 (GMT+08:00) Date: Wed, 20 Dec 2023 15:52:43 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: dinghao.liu@zju.edu.cn To: "Ira Weiny" Cc: "Dan Williams" , "Vishal Verma" , "Dave Jiang" , nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] nvdimm-btt: fix several memleaks 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: <65822a6542ca1_277bd294f3@iweiny-mobl.notmuch> References: <20231210085817.30161-1-dinghao.liu@zju.edu.cn> <657b9cb088175_27db80294d2@iweiny-mobl.notmuch> <657c82966e358_2947c22941a@iweiny-mobl.notmuch> <13ffb3fd.41cd7.18c7c3b52bf.Coremail.dinghao.liu@zju.edu.cn> <65822a6542ca1_277bd294f3@iweiny-mobl.notmuch> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <62f848c1.48243.18c86366e76.Coremail.dinghao.liu@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID:cC_KCgBnb3NMnYJl5scwAQ--.36390W X-CM-SenderInfo: qrrzjiaqtzq6lmxovvfxof0/1tbiAg0PB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