Received: by 10.192.165.148 with SMTP id m20csp265691imm; Wed, 9 May 2018 12:17:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrF7Dtvg6ly2Uww3H/MhfTkzFPrNVCi4cMjtMcEX4Fpoka/98s45kWNI/f8J1IeK/EsRWA9 X-Received: by 2002:a17:902:8f95:: with SMTP id z21-v6mr42378190plo.259.1525893465840; Wed, 09 May 2018 12:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525893465; cv=none; d=google.com; s=arc-20160816; b=QFz4gIFOyx2HE3TqTURqqwmxeCVH3z08pSjwNJhXkOKHIBe5AG++nSbWVmZKlzX+YU 4+3QJmuss9cm2v9UI97JhSe9WkpPwSa0ZLxQ/3MV/4ib8KJlBlKBA7c+RaAVoNLHIfTM kL841cAjYp7e79JphX/buJRdDRp2LREWseyajoD60ZADg6bRtYJukB5MTMYUWcc93sLM KD3OZ+PBE1eSnBSZHfvdoEmbqlJTHUl5PU8LpTCSNwFf4Su/Lr097PJ2tusiAShq6fhv Bphxbxc285RCL84kyTcjgkV14PDKdd265GrhLhTRbtcQZwOHOKM58SAouzrxDpCo9EpD h3Dw== 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=G7Eo8Dlnu1HMlxu7Scc+37LKKo3BAUpRBREYKfCba26rFkjkNYoc4iKWQ1ST6ZRctG OMMKN/dWCULRAMQBkk4mbWy/aCiSSLjX57ybegRaBSy6ztA60RZn9LjD3K6WdF0iAQij NfKtqrcTGfuOCvCQX6Y0BPYMVh0d7HqugE2LMeIvohTLhoRytSJeZM8vULnLtQ/27FEs P4itKBkhdK018Ax4rRddFqEdsyCNIHzNgC4D2lsHA3zpJFktGkPS7tvaDs26xp+UAK1I dlZXyvsMvoYTvijN+Z1T5zYnwKZHy7GQ8/RL9aVHSSEs3jxwlwcDIHHICAK/Y99FXdym rq/Q== 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 n10-v6si536260pgc.277.2018.05.09.12.17.30; Wed, 09 May 2018 12:17:45 -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 S965344AbeEITRG (ORCPT + 99 others); Wed, 9 May 2018 15:17:06 -0400 Received: from namei.org ([65.99.196.166]:59920 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965017AbeEITRF (ORCPT ); Wed, 9 May 2018 15:17:05 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id w49JGhaY013682; Wed, 9 May 2018 19:16:43 GMT Date: Thu, 10 May 2018 05:16:43 +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 1/2] tpm: replace kmalloc() + memcpy() with kmemdup() In-Reply-To: <1525824757-21835-1-git-send-email-ji_hun.kim@samsung.com> Message-ID: References: <1525824757-21835-1-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