diff --git a/patches.suse/scsi-lpfc-Correct-size-for-wqe-for-memset.patch b/patches.suse/scsi-lpfc-Correct-size-for-wqe-for-memset.patch new file mode 100644 index 0000000..6a6f4e4 --- /dev/null +++ b/patches.suse/scsi-lpfc-Correct-size-for-wqe-for-memset.patch @@ -0,0 +1,32 @@ +From: Muhammad Usama Anjum +Date: Mon, 4 Mar 2024 14:06:48 +0500 +Subject: scsi: lpfc: Correct size for wqe for memset() +Patch-mainline: Queued in subsystem maintainer repository +Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git +Git-commit: 28d41991182c210ec1654f8af2e140ef4cc73f20 +References: bsc#1221777 + +The wqe is of type lpfc_wqe128. It should be memset with the same type. + +Fixes: 6c621a2229b0 ("scsi: lpfc: Separate NVMET RQ buffer posting from IO resources SGL/iocbq/context") +Signed-off-by: Muhammad Usama Anjum +Link: https://lore.kernel.org/r/20240304090649.833953-1-usama.anjum@collabora.com +Reviewed-by: AngeloGioacchino Del Regno +Reviewed-by: Justin Tee +Signed-off-by: Martin K. Petersen +Acked-by: Daniel Wagner +--- + drivers/scsi/lpfc/lpfc_nvmet.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/scsi/lpfc/lpfc_nvmet.c ++++ b/drivers/scsi/lpfc/lpfc_nvmet.c +@@ -1586,7 +1586,7 @@ lpfc_nvmet_setup_io_context(struct lpfc_ + wqe = &nvmewqe->wqe; + + /* Initialize WQE */ +- memset(wqe, 0, sizeof(union lpfc_wqe)); ++ memset(wqe, 0, sizeof(*wqe)); + + ctx_buf->iocbq->cmd_dmabuf = NULL; + spin_lock(&phba->sli4_hba.sgl_list_lock); diff --git a/series.conf b/series.conf index 106f0f9..f3a708f 100644 --- a/series.conf +++ b/series.conf @@ -20055,6 +20055,7 @@ patches.suse/net-sched-Add-module-alias-for-sch_fq_pie.patch # mkp/scsi queue + patches.suse/scsi-lpfc-Correct-size-for-wqe-for-memset.patch patches.suse/scsi-qla2xxx-Prevent-command-send-on-chip-reset.patch patches.suse/scsi-qla2xxx-Fix-N2N-stuck-connection.patch patches.suse/scsi-qla2xxx-Split-FCE-EFT-trace-control.patch