Message ID | 20191112223436.27449-3-huobean@gmail.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | cfcbae3895b86c390ede57b2a8f601dd5972b47b |
Headers | show |
Series | Two small patches for UFS | expand |
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 527bd3b4f834..977d0c6fef95 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -2989,10 +2989,10 @@ static int __ufshcd_query_descriptor(struct ufs_hba *hba, goto out_unlock; } - hba->dev_cmd.query.descriptor = NULL; *buf_len = be16_to_cpu(response->upiu_res.length); out_unlock: + hba->dev_cmd.query.descriptor = NULL; mutex_unlock(&hba->dev_cmd.lock); out: ufshcd_release(hba);