ANDROID: scsi: ufs: Handle double release of clocks

Remove double release of UFS clocks when
ufshcd_prepare_lrbp_crypto fails for any reason.

Change-Id: Icf427330a08d1841ade1724322885be765102a79
Signed-off-by: Monika Singh <monising@codeaurora.org>
This commit is contained in:
Monika Singh 2020-11-03 09:25:08 +05:30
commit d189e4ea6d

View file

@ -2644,7 +2644,6 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
ufshcd_release(hba);
lrbp->cmd = NULL;
clear_bit_unlock(tag, &hba->lrb_in_use);
ufshcd_release(hba);
goto out;
}
lrbp->req_abort_skip = false;