Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4182205imm; Mon, 14 May 2018 03:59:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoze/zcGjSAOYk/6MuZSVPdRjAte+9XHeGv5u5ucgybiNFzWg1Q8ipAmE4DIGE3PW/dJ/pG X-Received: by 2002:a17:902:7614:: with SMTP id k20-v6mr1199276pll.29.1526295569534; Mon, 14 May 2018 03:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526295569; cv=none; d=google.com; s=arc-20160816; b=FV9Q85XxOX8inVrIt0NeZenaUKgGRYcDgZly2Y5hxUXdAVSwbE6gDbBLSeecx485Il r9tKffbTdRmZHH5GGhFDKLXc//7iaEeoVKm5AjAOn7DfRJIF6JGYmwDRKAMKsa5J/zgX F4tC8+SwwN8YoZx4UAnq/h05OaPl8TT21BIYSUoqoaW4TQ6MBGcPxFKZKKveevjk6FRu 4ViQyO4xopQhrPl08W3JrYt379H5u7CbDmL+0fOMxkRa1g7eDweNZvaqSqTByEi6scnX Vkb94xC+WHBGSz2iwAzKfuEcR01jw4xwLX/lKbi/zU9NCeM3+e+KEsrf8EPMDu57Jl70 ZF+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=a/zndeeuicuAWJ7aqpeJh1N+qTqjpWV3/l+szb4516M=; b=ZrLKSRJSHoCIowvldOC/MxHfbyzCdH/24jBJ7sr5TksG8H1cnsKSWpSmKyPYfVKXDn VcdiWV1SY+oxJmAz1A0hJyavWZYDUxpfcQbPUGo7SE4M9S1tbKOkSs8B1fg+KQDW6msm u9YsyY5Y41E+Q0CUmzuJMHdecRDf9zlGZzGeCzOAQ/obp+evX8LN9bZvimAenBgHjmKQ 8IqKoKyynC5IzgxqbhTod8Rz+yR+/1u0NrR4ZAT/MHmRS2cdxpWuVs1/yNltfjBRvbJ+ BbUFgclbexr0TeMMlWHhtB/0mFLmedJ1anXL14MA2Bf7479f3WMOJOlutLe+cyoldsjI NVkg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75-v6si10022168pfh.90.2018.05.14.03.59.15; Mon, 14 May 2018 03:59:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752536AbeENK6t (ORCPT + 99 others); Mon, 14 May 2018 06:58:49 -0400 Received: from mga09.intel.com ([134.134.136.24]:2330 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbeENK6r (ORCPT ); Mon, 14 May 2018 06:58:47 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 03:58:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,399,1520924400"; d="scan'208";a="228349733" Received: from yixuanma-mobl.ccr.corp.intel.com (HELO localhost) ([10.249.254.136]) by fmsmga006.fm.intel.com with ESMTP; 14 May 2018 03:58:41 -0700 Date: Mon, 14 May 2018 13:58:39 +0300 From: Jarkko Sakkinen To: Ji-Hun Kim Cc: peterhuewe@gmx.de, tweek@google.com, jgg@ziepe.ca, arnd@arndb.de, gregkh@linuxfoundation.org, javierm@redhat.com, sonnyrao@chromium.org, enric.balletbo@collabora.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/2] tpm: replace kmalloc() + memcpy() with kmemdup() Message-ID: <20180514105839.GH8228@linux.intel.com> References: <1525824757-21835-1-git-send-email-ji_hun.kim@samsung.com> <1525824757-21835-2-git-send-email-ji_hun.kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525824757-21835-2-git-send-email-ji_hun.kim@samsung.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 09:12:37AM +0900, Ji-Hun Kim wrote: > Use kmemdup rather than duplicating its implementation. > > Signed-off-by: Ji-Hun Kim Reviewed-by: Jarkko Sakkinen /Jarkko