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:
parent
c1676075cd
commit
677d641106
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user