]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: qcom: Properly clear hba priv on failure
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 20 Nov 2016 06:34:51 +0000 (22:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Nov 2016 03:40:30 +0000 (22:40 -0500)
commit45587ef59a3fdf3f33f0cce5b86c3763eaf2e718
treeec8581700b82360ba904488364f99c1fa6776c05
parentd524f01859742cb2e6242f649e436ee95e7462dc
scsi: ufs: qcom: Properly clear hba priv on failure

ufs_qcom_init() sets the hba priv data before attempting to acquire the
phy handle, so make sure to clear this in the case of an error. Failing
to do this will make ufs_qcom_setup_clocks() operate on the uninitalized
host object.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-qcom.c