Received: by 10.192.165.148 with SMTP id m20csp265915imm; Wed, 9 May 2018 12:18:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq4eB6uWQ/ilYeE8ehJqaorm0EyWC2BVZd2t6RVrn86ZjNMfa+2MkH3GgAvzAH4N5xjqNyX X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr47425211plg.388.1525893480713; Wed, 09 May 2018 12:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525893480; cv=none; d=google.com; s=arc-20160816; b=lA2rg/IffB8NarBckpLVUPP0ewcxIk2b23V8MXM1O1CDjmlRCfNWDOuCoz+ViuvQ/+ rQVtQKJT7bC/EdTxguSEdFoEF6zHgTv9hSSw3mW72ICdeAEkxTwk2cyAuHRnK5KbqgCa 9XQxeE2vvRACsdHg2r68O5ysE0S8uETdsib7Mv06d7WJHLNtPncq+CegcrWLMKCPAKG4 nB7f6EpSdQSmimWvQbM8HmAoH12hnT0x9RE3g5cRnUVj793rMCGb2sP4iy6H0qFveVUs +1Lwtw4qNPM+lM+QFPWBRkhDjLLnkkrwVrPO7bJ4zKaew16GPtwVawJpBFAt2ZLAdjs7 9YYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=XB7Xw9RvXG/eENKYqyrfKON9sOURAbG5DIEXsqCKyfc=; b=Nf9qGtY8tsLFkZ7J1b0u8YEX3xLvAl4UJHZMSJ2mG5GHFKxG0KYQohy+6eUIx2TD16 pp0KqQFqtjNdGC02qDRtNwgRzVMX1qWGsst1eNN3LZqdq1Scki7sB2cjpllHmqsr3rJI uq1fgjYODQNONDK7PPvgQYRt7K9ePjmZPZGEJN5zzK+cJyMV5drwAT+6eOwhoJTIE/PD MYLDszJ39R/qE7M1P0IEGliYv5SXO+iTrnVXdVAsp/H8d3s/6CrTK2NaJqXPLRHtJqBv 9B9D+wKhW+0+h1BWQZwVI2rSQKMuT3UcD3nTdpGYUjLSqZ4RQu0wJC03ofoM4DaufZLI wwqQ== 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 a35-v6si23096463pli.85.2018.05.09.12.17.46; Wed, 09 May 2018 12:18:00 -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 S965372AbeEITRN (ORCPT + 99 others); Wed, 9 May 2018 15:17:13 -0400 Received: from namei.org ([65.99.196.166]:59936 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965017AbeEITRK (ORCPT ); Wed, 9 May 2018 15:17:10 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id w49JGvua013705; Wed, 9 May 2018 19:16:57 GMT Date: Thu, 10 May 2018 05:16:57 +1000 (AEST) From: James Morris To: Ji-Hun Kim cc: peterhuewe@gmx.de, tweek@google.com, jarkko.sakkinen@linux.intel.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() In-Reply-To: <1525824757-21835-2-git-send-email-ji_hun.kim@samsung.com> Message-ID: References: <1525824757-21835-1-git-send-email-ji_hun.kim@samsung.com> <1525824757-21835-2-git-send-email-ji_hun.kim@samsung.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 May 2018, Ji-Hun Kim wrote: > Use kmemdup rather than duplicating its implementation. > > Signed-off-by: Ji-Hun Kim Reviewed-by: James Morris -- James Morris