Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3666291pxk; Mon, 21 Sep 2020 22:15:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEp0jUziu3layiQ9Lap2b96cONZA55jXkyYBrm/LBOo97RcND10uLorZwW4KNRJ547EyZI X-Received: by 2002:a50:a6c2:: with SMTP id f2mr2207376edc.227.1600751740092; Mon, 21 Sep 2020 22:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600751740; cv=none; d=google.com; s=arc-20160816; b=UBMQmViRvQfAOy3S8h9V1YKZrTtBglZWNGh0HjEuzJjK+B3ICWDFv0LQLyufIfwThG k07OBEUhr3iQx+F9Z+FkeBLqvcfAZV0ObP5JkSUCx/FFflTDEDTNug5T33UdbhPWaIyc ixcUAFapY8n8cDwxvu0crKJzNcbZvokv33/Msp/od/oJ483CS49hC9hiLRv+x/Qj+w0t f8/77n0ZVGah208qoJji+jWWq2LsCQuYJXwZQguYVv1sHuPJO1n3xOSVsXcmXKIneI5y /+r8R3eTh9TR88SyTe9Y3PwYhUnotjTmB8pqqrpgeilBYwnq2V85tqCnjbjKF5prWLj8 ZmDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SsXjOy/jJseEV++jujGReWmRvmZ88GovLw9CCSmqYG8=; b=rgiIHXTdR5Jeb2TnIMhR1ErISCOCjbKbJhqx2VuwOGOX2lvogRvYqRFaMD5wjVA5qI 1keZTcQ+D8NcX3x7Cv4O1EITEuZANjA6aMyPmZurJd0yEoYOS8zAYq4vivYTttLdc5MX riVGyYLenNJGM6MvQfRP3dVtOtW38hUeE6ar7Q+9JxaPlHOCusGiPv3QDY9gsUhFxL8k gHIDqzW+NGld2I5BDbC4uS4qVuCMeU+RxW7coWZDo+ETwFkQEp2Aw7pIzzDx8oVhdLEv YTgsASyyIhwQmIqcV5lF1pAXWDllhk9fU+lJfl6kUh3mfmSeegnCBdWlwoNzB6jmnQCW 2PxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=tNKj2lu3; 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 g2si9646519ejp.429.2020.09.21.22.15.16; Mon, 21 Sep 2020 22:15:40 -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=tNKj2lu3; 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 S1728455AbgIVD5T (ORCPT + 99 others); Mon, 21 Sep 2020 23:57:19 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:48334 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgIVD5T (ORCPT ); Mon, 21 Sep 2020 23:57:19 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08M3nRe3077435; Tue, 22 Sep 2020 03:57:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=SsXjOy/jJseEV++jujGReWmRvmZ88GovLw9CCSmqYG8=; b=tNKj2lu377zLcyvc95cJhaYKNEhTppNOY7Fmy/epeq7Fx79x8RYBn4cRX5Ds/e4vrlKe JnpYvLc02+jqUUhBeLwi04rODPeVZjeQbwsf4sy/ZX1POAGaO8+1hp/v+oj3s+QNvUTl v9/22YHX/nVZVSQxmQ0aqiuUCx/IbsbG8/3UroCLlTTx0baWdLjx586CsAzIdmCe/C1g kLWc4dwaZn8gmEtPrhY706GaojkQc3bgnzautn675oJrJhm6nn6/fhBQ+FFYBltS9NbJ 01w8pc9yVR5D/JlopQ2v9PY+dljRdnNHkCLwTnHhhKNB1pJ3cNu9LyOGWj6IXEgzxyah bw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 33q5rg8t6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Sep 2020 03:57:13 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08M3uIwW149668; Tue, 22 Sep 2020 03:57:12 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 33nujmm8mt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Sep 2020 03:57:12 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08M3vCHF019100; Tue, 22 Sep 2020 03:57:12 GMT Received: from ca-mkp.ca.oracle.com (/10.156.108.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Sep 2020 20:57:11 -0700 From: "Martin K. Petersen" To: Alex Dewar Cc: "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Hannes Reinecke , "James E.J. Bottomley" Subject: Re: [PATCH] scsi: aic7xxx: Use kmemdup in two places Date: Mon, 21 Sep 2020 23:56:44 -0400 Message-Id: <160074695012.411.2547601275803463095.b4-ty@oracle.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909185855.151964-1-alex.dewar90@gmail.com> References: <20200909185855.151964-1-alex.dewar90@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9751 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009220031 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9751 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009220030 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Sep 2020 19:58:55 +0100, Alex Dewar wrote: > kmemdup can be used instead of kmalloc+memcpy. Replace two occurrences > of this pattern. > > Issue identified with Coccinelle. Applied to 5.10/scsi-queue, thanks! [1/1] scsi: aic7xxx: Use kmemdup() in two places https://git.kernel.org/mkp/scsi/c/f97e6e1eabbf -- Martin K. Petersen Oracle Linux Engineering