Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4181844imm; Mon, 14 May 2018 03:59:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrBfDt2IebJK6fj+4BkwASkcY4OMx6hg0Zj0TbXXDFmJzOoWosef0gLMIIwaxkPLBuLmPyS X-Received: by 2002:a62:7f91:: with SMTP id a139-v6mr9971796pfd.25.1526295543252; Mon, 14 May 2018 03:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526295543; cv=none; d=google.com; s=arc-20160816; b=KAHJJg+qzontbu2EYFdRIo1sZDIk87t8WI/h5foEpfcsVnfhqNX9X5VoTKr1OO0+6i ouxJv9Jz59i+Ekl3CFNgmN3CFUS8+/zAgxN0tBGdvNuvzzk/3nvUz76o7WikBDejOrRR TKkeyUHGkVZ1/5WfuijQBLmduxkkPhpglXCO+bdUbvNZrzLs8T9tSsS9Xzbyk9aa70Wq TgLDfQci4PhX9SpqZiSu31TKxMI5BP7hVdnQkX7m2BnFmuyVaux7nBCY+BhRaBW9iWCq 3niTubuBSvAFApyn0ioDFqjFxAf09oGNUwXaGdukDNtGlbOE+YVYHpdgRVE3vHMZCTq7 pQlA== 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=pg78eEfIitlhSdtryA61Wanv54sDeuWZIMRjEEnZGok=; b=W9EF6wlqWXp2wHIUjsNS/gjsOKif6KmSysr+a4WorrJhnfYGn9jhTifaO9HfVuqjWO 4TVgqM67eKFegkabNeKyc/mLRULntrSb8K51ElyNjlhprinnj5a0kYMIVIy0hnJFa4oa uyrmvcC/4y1kPca7yVWq+X0XoP0svCaqt5z/ggurmjuKBu/jydilv/aQ2i4w15uXLe94 N7hDahrfobqQNXxmn8myAWbgI1kHIMxs4I5KGWBuyNtqr8uPOvUUfH+kQek5f5JvQ7Lx WhF+D3EWnlAB5VzexlRKZ0sR2TsVrI5UhOWzw0c3lSJh9pWYRBuige1tVyWG4dCGfmCG EcOQ== 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 w127-v6si9286255pfd.313.2018.05.14.03.58.49; Mon, 14 May 2018 03:59:03 -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 S1752520AbeENK6V (ORCPT + 99 others); Mon, 14 May 2018 06:58:21 -0400 Received: from mga01.intel.com ([192.55.52.88]:10210 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752087AbeENK6T (ORCPT ); Mon, 14 May 2018 06:58:19 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 03:58:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,399,1520924400"; d="scan'208";a="228349638" 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:13 -0700 Date: Mon, 14 May 2018 13:58:12 +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 1/2] tpm: replace kmalloc() + memcpy() with kmemdup() Message-ID: <20180514105812.GG8228@linux.intel.com> References: <1525824757-21835-1-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-1-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:36AM +0900, Ji-Hun Kim wrote: > Use kmemdup rather than duplicating its implementation. > > Signed-off-by: Ji-Hun Kim Reviewed-by: Jarkko Sakkinen /Jarkko