[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1375v72gl.fsf@oracle.com>
Date: Fri, 03 Nov 2017 12:26:50 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Vasyl Gomonovych <gomonovych@...il.com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
james.smart@...adcom.com, dick.kennedy@...adcom.com,
jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com
Subject: Re: [PATCH] scsi: lpfc: fix kzalloc-simple.cocci warnings
Vasyl,
> drivers/scsi/lpfc/lpfc_debugfs.c:5460:22-29: WARNING: kzalloc should be used for phba -> nvmeio_trc, instead of kmalloc/memset
> drivers/scsi/lpfc/lpfc_debugfs.c:2230:20-27: WARNING: kzalloc should be used for phba -> nvmeio_trc, instead of kmalloc/memset
>
> Use kzalloc rather than kmalloc followed by memset with 0
Applied to 4.15/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists