Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2383889imm; Sun, 9 Sep 2018 23:36:29 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbh7WUX+O55Za2BtNIAN5c4UhkiIYhLdK48SPThke5JOmC31hEFObzhcOe+B7Lgt+V8OvMB X-Received: by 2002:a62:ca0d:: with SMTP id n13-v6mr21959010pfg.69.1536561389434; Sun, 09 Sep 2018 23:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536561389; cv=none; d=google.com; s=arc-20160816; b=cs0WlAO6D2MaVTshD//A/WU264VRvnCInHF6C4cC46yU4MSUTHcb7Kn9e6wf9nQvIl adS5kiC6YBs0q5ey8A/D3iCAyu+Jte7UqBn2lkbTkTKti76uklY3haoFnSfKB2moy9Qd JNv2oqYASz3kfWps5g5QycjbS8j1elBopoBy5LgGLZP3fk1kqhNNBEXWN0fTh20nT7oU XZNAuXOg/tfGH1Jv0RZnummoDNeeuZPAVdjliIJLgx3zbD3PEHGHQDPjVsO+BvkcMpAQ tPv2H+o2yTx/C0V/DepgtQ+HHUoHVwoACva/i65sxmivIb6LuysNbqclTRv+840c3plY AChA== 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:message-id :mime-version:references:in-reply-to:subject:cc:to:from:date; bh=W8guk+WcUcT4dYfVKsYGMZjsa2nEUvO0KvG/ZFJSqU4=; b=koqYB+HhKz9n8MZNOdnNuELOrXYzyC5ryvVyd19vg/sKWZnk7Ih69qOL6p8/cvFcD6 2EIRjD5XwWcTm01hnLEF1qJ9SPS8AmhQ99+kBG+X9m/u+b74EwziUtAvwJ1+nnjayClw UuE9yXNu2dHF5FmXyLFwuupR+hpGHR8z11XiTFOPbWSlPMmDEe3RRe99hD7163JI2eO+ MDBlAuI+gsPzpit/1oGZ/zZWbg17if2v0QqAWyElBWDSlHiO1XFU3FhFWnpcMJIw7dB4 uxrFzmcMAK2mSw/yMi75AdOTxftGt547cyrImVNJL5RqWHl8nQGKL2WqN7DqPdkM1ace epVQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19-v6si17116470pgi.388.2018.09.09.23.36.14; Sun, 09 Sep 2018 23:36: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727704AbeIJL11 (ORCPT + 99 others); Mon, 10 Sep 2018 07:27:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37704 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727666AbeIJL11 (ORCPT ); Mon, 10 Sep 2018 07:27:27 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8A6XlFU093742 for ; Mon, 10 Sep 2018 02:34:59 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mdffuyucy-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 10 Sep 2018 02:34:59 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Sep 2018 07:34:56 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 10 Sep 2018 07:34:53 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8A6YrFM65142944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Sep 2018 06:34:53 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 33C2242045; Mon, 10 Sep 2018 09:34:45 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF7C34203F; Mon, 10 Sep 2018 09:34:44 +0100 (BST) Received: from mschwideX1 (unknown [9.145.63.9]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 10 Sep 2018 09:34:44 +0100 (BST) Date: Mon, 10 Sep 2018 08:34:50 +0200 From: Martin Schwidefsky To: zhong jiang Cc: , , , Subject: Re: [PATCH] s390/zcrypt: Use kmemdup to replace kmalloc + memcpy In-Reply-To: <1536396621-19363-1-git-send-email-zhongjiang@huawei.com> References: <1536396621-19363-1-git-send-email-zhongjiang@huawei.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18091006-0012-0000-0000-000002A67635 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18091006-0013-0000-0000-000020DAAC56 Message-Id: <20180910083450.62379f4b@mschwideX1> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-10_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=693 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809100072 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 8 Sep 2018 16:50:21 +0800 zhong jiang wrote: > kmemdup has implemented the function that kmalloc() + memcpy() will > do. and we prefer to use the kmemdup rather than the open coded implementation. > > Signed-off-by: zhong jiang > --- > drivers/s390/crypto/zcrypt_msgtype6.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) Applied to linux-390:features. Thanks. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.