Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1098637img; Fri, 22 Mar 2019 15:50:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSXEZ43ynl2heE3Qe4DcjfunhSFzIrYZjN3lISoaaXtMXqTT8txf2dzNiir9fsRQsiV91R X-Received: by 2002:a17:902:3381:: with SMTP id b1mr2708168plc.5.1553295035688; Fri, 22 Mar 2019 15:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553295035; cv=none; d=google.com; s=arc-20160816; b=TCf0NNi69EaK/rNaHYzZWXg8tyi55bBvp6zzyFsiAtG6+rKy3MjaRH00Auk4FWEuxZ d+dBP6EDEUgwbDnBfuDETvlX9sFeN6Lo2j54VEyDbZBbHzTmKU+ck//xYMoCkjS7+ulF Ho7URrOB8B4AQx0YgPjIgJzRX8NInFBf6kKYPtJ1DrNtHU7bCQKk0qnjBsgLsJdjs1Ja MedxDOz6C4mQnTSppwHqGjT4jsP6DeO2OzY0BsE0vzkbe6BogKuQF9XC7wzLJn7gupGE byz9jHzR8kQbOxGyCirIWpx1W6R7qRjSLEBKoYjCcihxNj2Eh3TovvHwTaiYP6PS8W0q JIKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=AevuMnjCOwpw6viShTAJ4jwTHmECdSAAKrdwnCt8hc4=; b=ISGYc/USzQHusUsbABcxvkD8z5k9cbRFPpBCvPRNxLk00FYw9T0/hX0NXyUM2QfEV0 Qlji4Ueb41FxK0fvrp68tdXo/7RGqoJpMZG1lHhxkpgnlsGijuTxYzIxw4xWf1Af/xMG Nv31/kJdTZJ9VdrqTQjOYSbcXXN2M73T7dPBxroxtxOLIIFkRmbhPkTSG/eX3n2Pv1oa PExVxLZtFEeOYkAx4KGl9t9RRtykbTuy8EwSFp3m72GpEiBiU0ZzzyIQExPdU0bQ50jh fLKv++LOgMVhqu54imReO76bo9c03dIzFv9r20eYD8r6INE6GNOZ0wxYVPKt2tPs7emH KbPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z61si4933917plb.81.2019.03.22.15.50.20; Fri, 22 Mar 2019 15:50:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbfCVWtd (ORCPT + 99 others); Fri, 22 Mar 2019 18:49:33 -0400 Received: from mga01.intel.com ([192.55.52.88]:27013 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728175AbfCVWtc (ORCPT ); Fri, 22 Mar 2019 18:49:32 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2019 15:49:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="285114414" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga004.jf.intel.com with ESMTP; 22 Mar 2019 15:49:31 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.56]) by fmsmsx104.amr.corp.intel.com ([169.254.3.38]) with mapi id 14.03.0415.000; Fri, 22 Mar 2019 15:49:30 -0700 From: "Verma, Vishal L" To: "kjlu@umn.edu" CC: "Williams, Dan J" , "linux-kernel@vger.kernel.org" , "Jiang, Dave" , "pakki001@umn.edu" , "linux-nvdimm@lists.01.org" , "zwisler@kernel.org" Subject: Re: [PATCH] nvdimm: btt_devs: fix a NULL pointer dereference and a memory leak Thread-Topic: [PATCH] nvdimm: btt_devs: fix a NULL pointer dereference and a memory leak Thread-Index: AQHU2KvP9fAOZmRsOECRxfaC1K1yNKYYxwKA Date: Fri, 22 Mar 2019 22:49:29 +0000 Message-ID: References: <20190312081529.4889-1-kjlu@umn.edu> In-Reply-To: <20190312081529.4889-1-kjlu@umn.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.30.5 (3.30.5-1.fc29) x-originating-ip: [10.232.112.185] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTAzLTEyIGF0IDAzOjE1IC0wNTAwLCBLYW5namllIEx1IHdyb3RlOg0KPiBJ biBjYXNlIGttZW1kdXAgZmFpbHMsIHRoZSBmaXggcmVsZWFzZXMgcmVzb3VyY2VzIGFuZCByZXR1 cm5zIHRvDQo+IGF2b2lkIHRoZSBOVUxMIHBvaW50ZXIgZGVyZWZlcmVuY2UuDQo+IEFsc28sIHRo ZSBlcnJvciBwYXRocyBpbiB0aGUgZm9sbG93aW5nIGNvZGUgc2hvdWxkIHJlbGVhc2UNCj4gcmVz b3VyY2VzIHRvIGF2b2lkIG1lbW9yeSBsZWFrcy4NCj4gDQo+IFNpZ25lZC1vZmYtYnk6IEthbmdq aWUgTHUgPGtqbHVAdW1uLmVkdT4NCj4gLS0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