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

Commit 6b4bac7f authored by Gaurav Kashyap's avatar Gaurav Kashyap Committed by Eric Biggers
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: I32128709fb3b653ad5a2aa8d9b680c34a81f667f
Signed-off-by: default avatarGaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent cfc3461a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2531,6 +2531,7 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)

	err = ufshcd_prepare_lrbp_crypto(hba, cmd, lrbp);
	if (err) {
		ufshcd_release(hba);
		lrbp->cmd = NULL;
		clear_bit_unlock(tag, &hba->lrb_in_use);
		goto out;