Skip to content

Commit 28d4199

Browse files
musamaanjummartinkpetersen
authored andcommitted
scsi: lpfc: Correct size for wqe for memset()
The wqe is of type lpfc_wqe128. It should be memset with the same type. Fixes: 6c621a2 ("scsi: lpfc: Separate NVMET RQ buffer posting from IO resources SGL/iocbq/context") Signed-off-by: Muhammad Usama Anjum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Justin Tee <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0822853 commit 28d4199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_nvmet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ lpfc_nvmet_setup_io_context(struct lpfc_hba *phba)
15861586
wqe = &nvmewqe->wqe;
15871587

15881588
/* Initialize WQE */
1589-
memset(wqe, 0, sizeof(union lpfc_wqe));
1589+
memset(wqe, 0, sizeof(*wqe));
15901590

15911591
ctx_buf->iocbq->cmd_dmabuf = NULL;
15921592
spin_lock(&phba->sli4_hba.sgl_list_lock);

0 commit comments

Comments
 (0)