Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbee3e0e authored by Siba Prasad's avatar Siba Prasad
Browse files

scsi: ufs: ufs-qcom-ice: Initialize local variable in ice_cfg_start()



Previously local variable ice_set in ufs_qcom_ice_cfg_start() function
was initialized only if qcom_host->ice.vops->config_start was set.
If that was not set, then the uninitialized value of ice_set might have
lead to incorrect configuration of ICE.
So initialize the variable regardless the value of config_start.

Change-Id: I16692902d9f5b8df00ae2ffc7c363413d13e932a
Signed-off-by: default avatarSiba Prasad <sibap@codeaurora.org>
parent 40895552
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -394,8 +394,8 @@ int ufs_qcom_ice_cfg_start(struct ufs_qcom_host *qcom_host,
	}


	if (qcom_host->ice.vops->config_start) {
	memset(&ice_set, 0, sizeof(ice_set));
	if (qcom_host->ice.vops->config_start) {

		spin_lock_irqsave(
			&qcom_host->ice_work_lock, flags);