lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240928-driver-fixes-for-mpi3mr_fw-v1-1-fc340a71e19a@gmail.com>
Date: Sat, 28 Sep 2024 17:17:40 -0400
From: Abdulrasaq Lawani <abdulrasaqolawani@...il.com>
To: Sathya Prakash Veerichetty <sathya.prakash@...adcom.com>, 
 Kashyap Desai <kashyap.desai@...adcom.com>, 
 Sumit Saxena <sumit.saxena@...adcom.com>, 
 Sreekanth Reddy <sreekanth.reddy@...adcom.com>, 
 "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>, 
 "Martin K. Petersen" <martin.petersen@...cle.com>
Cc: mpi3mr-linuxdrv.pdl@...adcom.com, linux-scsi@...r.kernel.org, 
 linux-kernel@...r.kernel.org, 
 Abdulrasaq Lawani <abdulrasaqolawani@...il.com>
Subject: [PATCH next] scsi: mpi3mr: fix uninitialized variables in
 mpi3mr_bring_ioc_ready

Initialize the `start_time` & `elapsed_time_sec` variable
to prevent errors when calculating elapsed_time_sec.

Signed-off-by: Abdulrasaq Lawani <abdulrasaqolawani@...il.com>
---
 drivers/scsi/mpi3mr/mpi3mr_fw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c
index f1ab76351bd8..f93968b76883 100644
--- a/drivers/scsi/mpi3mr/mpi3mr_fw.c
+++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c
@@ -1363,7 +1363,8 @@ static int mpi3mr_bring_ioc_ready(struct mpi3mr_ioc *mrioc)
 	enum mpi3mr_iocstate ioc_state;
 	u64 base_info;
 	u8 retry = 0;
-	u64 start_time, elapsed_time_sec;
+	u64 start_time = 0;
+	u64 elapsed_time_sec = 0;
 
 retry_bring_ioc_ready:
 

---
base-commit: 40e0c9d414f57d450e3ad03c12765e797fc3fede
change-id: 20240928-driver-fixes-for-mpi3mr_fw-2fac1a9bda03

Best regards,
-- 
Abdulrasaq Lawani <abdulrasaqolawani@...il.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ