]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix uninitialized cqe field in lpfc_nvme_cancel_iocb()
authorJames Smart <jsmart2021@gmail.com>
Fri, 1 Jul 2022 21:14:14 +0000 (14:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 21:21:42 +0000 (17:21 -0400)
commit5812e81ed870d65d82b5af18f0f8833324a9b0bc
treea2d8026a4954746d81f84b38cf7e4655203404d0
parente5c335d9fe8f26bb6bd2a2fd09d007a33367652d
scsi: lpfc: Fix uninitialized cqe field in lpfc_nvme_cancel_iocb()

In lpfc_nvme_cancel_iocb(), a cqe is created locally from stack storage.
The code didn't initialize the total_data_placed word, inheriting stack
content.

Initialize the total_data_placed word.

Link: https://lore.kernel.org/r/20220701211425.2708-2-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c