Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1240253imj; Thu, 14 Feb 2019 03:30:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTRqIPFuiBTKXGdkIFzZfk/u8ckJE6VIWCUSUjKguO9Mfa4/kRNiZa3AqiU1QLQEEecRr7 X-Received: by 2002:a17:902:b01:: with SMTP id 1mr3635446plq.331.1550143823727; Thu, 14 Feb 2019 03:30:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550143823; cv=none; d=google.com; s=arc-20160816; b=qTsJdmwz575tuTccHpakChSQ02JYjct9bU2+Um0rmyKoWYM1XEObkCxpZVf/hjDVBh tvKI6by9P2y1dXAB9ThJ+nQJH6JC9V04SvZdBhVc7eS/dk8yyUlGuO+/0nQip7Ot5I8Z XpP2i+QAnlSfnunHJ6l6b8c/eIaYC1uc0qHA4xaRm8guhqEM4xTidBtQTmI0rwcxRZ80 nwYnub35OC6ciDzRiCuFwuw/eegAhW1fot+9pLur2Ux57smDUTq0D+CUdypQd8xyfM9B BGbFfVpJ23rmp8a1PFMFGUGhPDa1uq+fBuoOF3qK5lhG3wTJHOFA4zRilHx1EtN4egRi rYUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=nL0OgEWf9ACS0fK6ljX5qzzJBFcHW7mGUSeAdN9gL0A=; b=XXVxts+G3sRWTwo690YRfuKBFyt1U7aQVNcssa5hYXz+o53MOYpTxp7/OHmk731b1b GBWGROjA1SIIlkpHK1pnSVGzEm6zCdxWKNhF8gLbZbhfOg5RJbBLP+wrh0HH4SHzdJX/ ANXPgfQjXo0p1DfurTdXXBALDPNCVBVIOu+g6L8n2cypZZ04U2out5IQYAv9K/uXxud7 jW/eLaMzmsOA0yAE1491AYga2ooZll6WKTXPSJ0up4MN9qGSWAhS9tVqjyG2lUbceJPI Uo2sO/whbu/p1UD8HIALPI2lSbGrDqsxauVeOysbHhAYVy7QV8NNx3yNCUGokQ5Gfdj4 phaQ== 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 1si2252938plc.277.2019.02.14.03.30.07; Thu, 14 Feb 2019 03:30:23 -0800 (PST) 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 S2405983AbfBNG6E (ORCPT + 99 others); Thu, 14 Feb 2019 01:58:04 -0500 Received: from mga01.intel.com ([192.55.52.88]:54744 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405705AbfBNG6E (ORCPT ); Thu, 14 Feb 2019 01:58:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2019 22:58:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,367,1544515200"; d="scan'208";a="143346593" Received: from hnswanep-mobl.amr.corp.intel.com ([10.252.8.171]) by fmsmga002.fm.intel.com with ESMTP; 13 Feb 2019 22:58:01 -0800 Message-ID: Subject: Re: [PATCH v2 2/2] iwlwifi: Use struct_size() in kzalloc From: Luciano Coelho To: YueHaibing , johannes.berg@intel.com, emmanuel.grumbach@intel.com, linuxwifi@intel.com, kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Date: Thu, 14 Feb 2019 08:58:00 +0200 In-Reply-To: <20190129032144.18120-3-yuehaibing@huawei.com> References: <20190129032144.18120-1-yuehaibing@huawei.com> <20190129032144.18120-3-yuehaibing@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-01-29 at 11:21 +0800, YueHaibing wrote: > Use struct_size() in kzalloc instead of the 'regd_to_copy' > > Signed-off-by: YueHaibing > --- Applied to our internal tree and it will reach the mainline following our normal upstreaming process. Thanks! -- Luca.