Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1357324ybl; Wed, 28 Aug 2019 13:27:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSz8qgv83GpaPFcf14tJVXOzr+9sjslmLl+tapv7bcdKEPUDcVxuzdEjLRSZy5Y0i/XdLd X-Received: by 2002:a63:550d:: with SMTP id j13mr5070791pgb.173.1567024066052; Wed, 28 Aug 2019 13:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567024066; cv=none; d=google.com; s=arc-20160816; b=jC1A3FCTy9AfngLbolEQYTJYAa/nsc89FmkuaDZCYnO4Sn3H/IOO4+9Kg7Mn3zNEGN 7Eu3nTMmL5x1/ql8yTH60B2fuEBnTqZCpUGY4PDLGLFPLSe/0w1dgsj5ozuDtz2uwIiO F8nH7W3rxHZIsbo7kyIM8ammYCb2hBGd/flNhWdEdlFLIfFcr2WSfgCw/30eWSCEOLqk 3JzbNelGvd6JKoQX8wa9wb90k30lJL91q5aYYiaHlHGarJ7nWzJYcDvBrdl2sLVMZWXc /jGLX/X3BAJnnQ91+hQ0Ps+28iy/XxgCcSow4/FSz7I0dD5hqarPMHVWERGvH2qzfUBg g44w== 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=gt78wTH9P1uGtfB2JY7E9weodIdxQ9WyJnjMidT92Js=; b=lMI21TWh76EajOHqiZnBG0/+rz7Ee8Aw4yGnkvqWB5gMdgLuMnucrOuEZC4cH1uyD/ BXEOiwnoUQsjd8CAJxsZHkoMb6B8PD2e6Xd0Uk7YZgPfwX5rxnyCjoQ+8MS9iMFIrKBx 1b0vne5lpvdf7UiVf3Hx5uN6zRCTBNbl5STSFoOATqid33/MieCOLDLRqS9SisWe8PwI 9q5kHD2kF+ZgPG+r8d1IszQCsFYiO7hmKGM8NqVvVOWCCX9wnjbBMy/l7KU6fg/qvI+h r+ahGCxmnMK7Bz8UH7++6FP5OlDzGNVdDm3GzucY3FKoc/LpuMIcU7b6GfgOfd6Sf/Au 4CVQ== 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 a18si230149pfa.177.2019.08.28.13.27.30; Wed, 28 Aug 2019 13:27:46 -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 S1727008AbfH1UYh (ORCPT + 99 others); Wed, 28 Aug 2019 16:24:37 -0400 Received: from mga01.intel.com ([192.55.52.88]:28046 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbfH1UYh (ORCPT ); Wed, 28 Aug 2019 16:24:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2019 13:24:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,442,1559545200"; d="scan'208";a="171666831" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 28 Aug 2019 13:24:36 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.127]) by FMSMSX103.amr.corp.intel.com ([169.254.2.141]) with mapi id 14.03.0439.000; Wed, 28 Aug 2019 13:24:36 -0700 From: "Verma, Vishal L" To: "Williams, Dan J" , "Jiang, Dave" , "gustavo@embeddedor.com" , "Busch, Keith" , "Weiny, Ira" CC: "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" Subject: Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc() Thread-Topic: [PATCH] libnvdimm, region: Use struct_size() in kzalloc() Thread-Index: AQHVH9BpuhzKadnSBkOkhqdJ05WiaacR2OoAgAAMuICAAA1MgA== Date: Wed, 28 Aug 2019 20:24:35 +0000 Message-ID: <7980d0c0b43bc6f377e0daad4a066f7ab37c2258.camel@intel.com> References: <20190610210613.GA21989@embeddedor> <3e80b36c86942278ee66aebdd5ea2632f104083a.camel@intel.com> In-Reply-To: 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: <3847512B969EEA4C94940FD1F358BBD7@intel.com> 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 T24gV2VkLCAyMDE5LTA4LTI4IGF0IDE0OjM2IC0wNTAwLCBHdXN0YXZvIEEuIFIuIFNpbHZhIHdy b3RlOg0KDQo+IHN0cnVjdF9zaXplKCkgZG9lcyBub3QgYXBwbHkgdG8gdGhvc2Ugc2NlbmFyaW9z LiBTZWUgYmVsb3cuLi4NCj4gDQo+ID4gWzFdOiANCj4gPiBodHRwczovL2dpdC5rZXJuZWwub3Jn L3B1Yi9zY20vbGludXgva2VybmVsL2dpdC9udmRpbW0vbnZkaW1tLmdpdC90cmVlL2RyaXZlcnMv bnZkaW1tL3JlZ2lvbl9kZXZzL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