diff options
| author | Dov Levenglick <dovl@codeaurora.org> | 2015-04-26 10:56:57 +0300 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 10:59:36 -0700 |
| commit | 797f8f7f8d5ae27c00d977cfaf33b3e728b90f13 (patch) | |
| tree | 0d4dbb09fb8ab4effd8991fdbfaab7c763274533 /scripts | |
| parent | 30fd811fb78f7556e0055aae5dcf88a76289eb77 (diff) | |
scsi: ufs: fix probe failure masked by crypto engine reset
When ufshcd_host_reset_and_restore() is called, it is possible
that ufshcd_probe_hba() fails and return an error value.
However, the later call to crypto_engine_reset() might succeed
and override the previous error value.
This will result in ufshcd_host_reset_and_restore() returning
success while in fact a serious error may have occured which
should prevent us from continuing in the normal sequence.
Instead, call crypto_engine_reset() only if ufshcd_probe_hba()
was successfull.
Change-Id: I0462f674b8750bfb9e0657cb37833aa2bd2aa4f0
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Dov Levenglick <dovl@codeaurora.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
