Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp824044ybz; Fri, 24 Apr 2020 09:52:24 -0700 (PDT) X-Google-Smtp-Source: APiQypJ3hekZCqoOTGxyvTIP6cRcXo1cbNaiZP/FDyUYALY1AfRkMN1evMv5ZMN3vll5H941y2jZ X-Received: by 2002:a17:906:3198:: with SMTP id 24mr7445182ejy.39.1587747143856; Fri, 24 Apr 2020 09:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587747143; cv=none; d=google.com; s=arc-20160816; b=i0D2GNml/uljuY0TU142VJ3NlJpGHh4I5k4oi+9Vxk4e1ctCR1u2/1PLj61ba8QQ8F tA8HOhWbwm4aPP0cE8mf5PcQVfjgPPC2luFTCd1uSqzpwug09gf6oo3Md58BXaPjjCOF GWP216l+VD9YdDVtEAAusLW7ikex5SyczXUIVxGXlJH9NIX846JuhWwRrZQO/ufUQIkI +quAweri95u3rhxBh+uF/9U2FifXU2BIeoEXfTUkvlFX7X4V/ScBNTEUP4NyYokGS8p+ BjfU2jg6Zv/2xiQciCcXB3ozLYjCWlQuYWws0qspre5ukO5vX+hrTvjbTTS8ZS1ijzO/ u4Mg== 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:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=nNYSh5k6xwe8DoqI9uKkrfPMSL0GeIOszrxes7VfxaY=; b=yWtbPjSs5kS0f2DSwIlAW/XeLEyjbjN4tRIxPYhdYMIJ5Cpy/kE/Wfkfd0Rl/7xvsx nB7RWERi7XaKjT0skM/AE8Vid6l0tIImzuT+IHhC3HvKg1vN7PsZcZOqJgkoUQxpsaIq eD9msoIySGMmzEFS/5oWlJCMwgFfn/jylyNzYK6IkctPt2kz1TImczozb029NiNyxPqi 4ovhIxkr6n9bKRrgWfMUkeAnyBl2Ppbc9Cs0TBxpS2jLJOysoHqRYDCNLRI2ftqmFk7u G9UfH7HlrTXTQt9Hjv1ExfQMaBGkdCanGBZlXaCEZ7xnK4hBnjNHB33os4gn8hb6LtfW LXOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=EqcSW7yI; 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 bq12si3323214ejb.472.2020.04.24.09.51.59; Fri, 24 Apr 2020 09:52:23 -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=EqcSW7yI; 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 S1728128AbgDXQti (ORCPT + 99 others); Fri, 24 Apr 2020 12:49:38 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41218 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726793AbgDXQth (ORCPT ); Fri, 24 Apr 2020 12:49:37 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03OGmrRr029656; Fri, 24 Apr 2020 16:49:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2020-01-29; bh=nNYSh5k6xwe8DoqI9uKkrfPMSL0GeIOszrxes7VfxaY=; b=EqcSW7yIMQZX1A+cUsMWAApQ2HkewUrRqA7IovQ0rh2ihRWzdfMY04RR7bCJgAmF6li6 aNYHsya7q4gNzS/kyhN4y3wP/wrgI0v7K2WYO4UtGNOeRdKlgb7/Lnd5I2XbZElH7Jku jBcdtknsyw8A764T832cXZw+7Rpydk/L9VWC/uC9+AYt45IxTpRHK/TuV8FSgXBtJ5L2 xE0ehbeAYlq6Vt5yvMFWvBDLbAka/nl67hQb4pzWBgGy3Z3S0V7UEHRpXFrsyo5X5oGd tZbVqW02qIRfNkB/yrDQSkd50+TgxID/8dI7FuairEfr41p53IdFwRi9OHlEgjPhaSRO eQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 30ketdneax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Apr 2020 16:49:30 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03OGkhrg095612; Fri, 24 Apr 2020 16:49:29 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 30gbbqm8wh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Apr 2020 16:49:29 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03OGnQk0018093; Fri, 24 Apr 2020 16:49:27 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 24 Apr 2020 09:49:26 -0700 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 kzalloc() instead of kmalloc()+memset() From: "Martin K. Petersen" Organization: Oracle Corporation References: <20200403163611.46756-1-alex.dewar@gmx.co.uk> Date: Fri, 24 Apr 2020 12:49:24 -0400 In-Reply-To: <20200403163611.46756-1-alex.dewar@gmx.co.uk> (Alex Dewar's message of "Fri, 3 Apr 2020 17:36:10 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9601 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004240131 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9601 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 spamscore=0 impostorscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004240131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alex, > There are a couple of places where kzalloc() could be used directly > instead of calling kmalloc() then memset(). Replace them. Applied to 5.8/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering