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: Gaurav Kashyap <gaurkash@codeaurora.org>
This commit is contained in:
Gaurav Kashyap 2020-05-22 13:45:18 -07:00 committed by Eric Biggers
parent c1676075cd
commit 677d641106

View File

@ -2532,6 +2532,7 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
err = ufshcd_prepare_lrbp_crypto(hba, cmd, lrbp);
if (err) {
lrbp->cmd = NULL;
ufshcd_release(hba);
goto out;
}
lrbp->req_abort_skip = false;