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

Commit 9e7a7ecd authored by Gaurav Kashyap's avatar Gaurav Kashyap Committed by Gerrit - the friendly Code Review server
Browse files

ANDROID: scsi: ufs: Handle clocks when lrbp fails

Release UFS clocks when ufshcd_prepare_lrbp_crypto fails
for any reason.
Bug: 157284579.

Change-Id: I1dd28ffea9379b58c55a948a6365e0b153249516
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarGaurav Kashyap <gaurkash@codeaurora.org>
parent 514fa165
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3191,6 +3191,7 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
	if (err) {
		lrbp->cmd = NULL;
		clear_bit_unlock(tag, &hba->lrb_in_use);
		ufshcd_release_all(hba);
		goto out;
	}
	lrbp->req_abort_skip = false;
+1 −0
Original line number Diff line number Diff line
@@ -2585,6 +2585,7 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
	if (err) {
		lrbp->cmd = NULL;
		clear_bit_unlock(tag, &hba->lrb_in_use);
		ufshcd_release(hba);
		goto out;
	}
	lrbp->req_abort_skip = false;