Skip to content

Commit 16cc2ba

Browse files
musamaanjummartinkpetersen
authored andcommitted
scsi: lpfc: Correct size for cmdwqe/rspwqe for memset()
The cmdwqe and rspwqe are of type lpfc_wqe128. They should be memset() with the same type. Fixes: 61910d6 ("scsi: lpfc: SLI path split: Refactor CT paths") Signed-off-by: Muhammad Usama Anjum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Justin Tee <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 28d4199 commit 16cc2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/lpfc/lpfc_bsg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3169,10 +3169,10 @@ lpfc_bsg_diag_loopback_run(struct bsg_job *job)
31693169
}
31703170

31713171
cmdwqe = &cmdiocbq->wqe;
3172-
memset(cmdwqe, 0, sizeof(union lpfc_wqe));
3172+
memset(cmdwqe, 0, sizeof(*cmdwqe));
31733173
if (phba->sli_rev < LPFC_SLI_REV4) {
31743174
rspwqe = &rspiocbq->wqe;
3175-
memset(rspwqe, 0, sizeof(union lpfc_wqe));
3175+
memset(rspwqe, 0, sizeof(*rspwqe));
31763176
}
31773177

31783178
INIT_LIST_HEAD(&head);

0 commit comments

Comments
 (0)