Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp24049pxk; Tue, 15 Sep 2020 19:03:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUc1i8WntzTfBPF+8evVt2NrMHDn/YCQuNsukKEgjGLedrjh5xxhKKkrqbaVFSBWNRbkT3 X-Received: by 2002:a17:907:724f:: with SMTP id ds15mr22527397ejc.119.1600221785948; Tue, 15 Sep 2020 19:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600221785; cv=none; d=google.com; s=arc-20160816; b=SiPHgyOyXYV7mvRaij/VWggdC657CpUV3xWyZsIeWYLvU51bX7FKBq+iEmXV+5dF12 TZBNM+pjEhgCFJI6EnzMOwNadvYUuo+HeBbGAN8NrjIPXXPh3vovN/1aDZnzS0LJt8Kr WH/YpLCZNr03UUswr4W++uwXDNBx2qlta0ge4eda5G1/QU15duT2Gfxl+uZjfOUKBfD0 YKMAky9DbLT8pGHSpEauOcfOhC5IL0Qa4m4DFrdSitcukZ+rJ5GE12ODpVKsDbzbabQ0 LcPD4RQetcjsc4KFZ9Tw9bVEbXTLVM/vEFhZJKHqAEg0ND/T2uTRgHiFX8s0KclkgVXG m23A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:date:references:message-id :organization:in-reply-to:from:subject:cc:to:dkim-signature; bh=YzaglPsjt4/JTPJfQ2xWXePQIqkgW9AqHUCvoonbdnU=; b=f9Yh1rDV/f5RKSKwduIJTMVUIwnC4n185/H7KTNZd929P+FLjJthjx67A8l/wd8qZw PZKy6uAN7lNYyjYE6PS2jaj5v67HiiS/+c9WtcW/m2SQNB1anPq0ZSmMjXMlqPb+6jMF Tks0yWKeGxlXpgJhgxVoUndvmK2cOds7TufiGeLHmdmkkB3WnlpL4F+Q/2gOoS0YLSjM FJ2ZzczjXv04awJTDqZWmPH8Qdw20IhWXthf9hmrn7ng5VakrKpxBdEJewYSbgXCz0cR jUhLbUEfFKvWuXxzT4QJjXCm0kqvQ6+4TH/H1tRntoqMYXAl+hiUVCeIgM0IDPMeFfRA utkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=VzU+tqAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h26si10530862eji.739.2020.09.15.19.02.43; Tue, 15 Sep 2020 19:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=VzU+tqAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726153AbgIPCBI (ORCPT + 99 others); Tue, 15 Sep 2020 22:01:08 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:50558 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbgIPCBE (ORCPT ); Tue, 15 Sep 2020 22:01:04 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08G1sRI9004551; Wed, 16 Sep 2020 02:00:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : in-reply-to : message-id : references : date : mime-version : content-type; s=corp-2020-01-29; bh=YzaglPsjt4/JTPJfQ2xWXePQIqkgW9AqHUCvoonbdnU=; b=VzU+tqAAGyKIdOz3LgZXlo6gvVKGr/NhckaaMqijgiZnAUFeAqUHLVkYkpfVzcOOGXmv PJO4BG/4zgPEKAPjrplO8Sy3BAKacZoTbvGCHrbsO3Mkc5IOTwThRROCOhkIivsoJ74b utIX/uccLen1tClly6rA+RlZQx0qV5tbPcLvUpy+k9dwikLZJgi/mkGbzqsyndTTl0r0 DWY/PTIlAuheW3hOYA84VirNaSmtFyuzqx5+CBAM7tA7MZnG288jtk8ZtjSKoJ9tk9QO QhvOVtcN1q21svKyHPzKs1ce3h0nyMqpxEynTvUaD6oxlskLXLXmigxy3f7pjA0TfuqP 8w== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 33j91dhyx5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Sep 2020 02:00:57 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08G1trQH126201; Wed, 16 Sep 2020 02:00:57 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 33hm31nvkn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Sep 2020 02:00:57 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08G20tsx023420; Wed, 16 Sep 2020 02:00:55 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Sep 2020 02:00:55 +0000 To: Alex Dewar Cc: Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: aic7xxx: Use kmemdup in two places From: "Martin K. Petersen" In-Reply-To: <20200909185855.151964-1-alex.dewar90@gmail.com> (Alex Dewar's message of "Wed, 9 Sep 2020 19:58:55 +0100") Organization: Oracle Corporation Message-ID: References: <20200909185855.151964-1-alex.dewar90@gmail.com> Date: Tue, 15 Sep 2020 22:00:53 -0400 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9745 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 phishscore=0 adultscore=0 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009160011 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9745 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 suspectscore=1 mlxlogscore=999 clxscore=1015 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009160011 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alex, > kmemdup can be used instead of kmalloc+memcpy. Replace two occurrences > of this pattern. > > Issue identified with Coccinelle. Applied to 5.10/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering