]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2024 13:39:33 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2024 13:39:33 +0000 (15:39 +0200)
added patches:
scsi-lpfc-correct-size-for-wqe-for-memset.patch

queue-4.19/scsi-lpfc-correct-size-for-wqe-for-memset.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/scsi-lpfc-correct-size-for-wqe-for-memset.patch b/queue-4.19/scsi-lpfc-correct-size-for-wqe-for-memset.patch
new file mode 100644 (file)
index 0000000..ff009c9
--- /dev/null
@@ -0,0 +1,33 @@
+From 28d41991182c210ec1654f8af2e140ef4cc73f20 Mon Sep 17 00:00:00 2001
+From: Muhammad Usama Anjum <usama.anjum@collabora.com>
+Date: Mon, 4 Mar 2024 14:06:48 +0500
+Subject: scsi: lpfc: Correct size for wqe for memset()
+
+From: Muhammad Usama Anjum <usama.anjum@collabora.com>
+
+commit 28d41991182c210ec1654f8af2e140ef4cc73f20 upstream.
+
+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 <usama.anjum@collabora.com>
+Link: https://lore.kernel.org/r/20240304090649.833953-1-usama.anjum@collabora.com
+Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
+Reviewed-by: Justin Tee <justintee8345@gmail.com>
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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
+@@ -1308,7 +1308,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->context1 = NULL;
+               spin_lock(&phba->sli4_hba.sgl_list_lock);
index 05752c6b1a61291d5ba99113ad9619a6305ea955..7f0838752c60ce8d28e3e43eee10ccf9768fa819 100644 (file)
@@ -107,3 +107,4 @@ scsi-qla2xxx-fix-command-flush-on-cable-pull.patch
 x86-cpu-enable-stibp-on-amd-if-automatic-ibrs-is-enabled.patch
 timers-move-clearing-of-base-timer_running-under-base-lock.patch
 drm-imx-parallel-display-remove-bus-flags-check-in-imx_pd_bridge_atomic_check.patch
+scsi-lpfc-correct-size-for-wqe-for-memset.patch