Re: [PATCH] scsi: lpfc: fix kzalloc-simple.cocci warnings

From: Martin K. Petersen
Date: Fri Nov 03 2017 - 12:27:04 EST



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