Loading drivers/scsi/ufs/ufs-qcom.c +7 −1 Original line number Diff line number Diff line Loading @@ -2499,7 +2499,7 @@ bool ufs_qcom_testbus_cfg_is_ok(struct ufs_qcom_host *host, int ufs_qcom_testbus_config(struct ufs_qcom_host *host) { int reg = 0; int offset, ret = 0, testbus_sel_offset = 19; int offset = -1, ret = 0, testbus_sel_offset = 19; u32 mask = TEST_BUS_SUB_SEL_MASK; unsigned long flags; struct ufs_hba *hba; Loading Loading @@ -2564,6 +2564,12 @@ int ufs_qcom_testbus_config(struct ufs_qcom_host *host) * is legal */ } if (offset < 0) { dev_err(hba->dev, "%s: Bad offset: %d\n", __func__, offset); ret = -EINVAL; spin_unlock_irqrestore(hba->host->host_lock, flags); goto out; } mask <<= offset; spin_unlock_irqrestore(hba->host->host_lock, flags); Loading Loading
drivers/scsi/ufs/ufs-qcom.c +7 −1 Original line number Diff line number Diff line Loading @@ -2499,7 +2499,7 @@ bool ufs_qcom_testbus_cfg_is_ok(struct ufs_qcom_host *host, int ufs_qcom_testbus_config(struct ufs_qcom_host *host) { int reg = 0; int offset, ret = 0, testbus_sel_offset = 19; int offset = -1, ret = 0, testbus_sel_offset = 19; u32 mask = TEST_BUS_SUB_SEL_MASK; unsigned long flags; struct ufs_hba *hba; Loading Loading @@ -2564,6 +2564,12 @@ int ufs_qcom_testbus_config(struct ufs_qcom_host *host) * is legal */ } if (offset < 0) { dev_err(hba->dev, "%s: Bad offset: %d\n", __func__, offset); ret = -EINVAL; spin_unlock_irqrestore(hba->host->host_lock, flags); goto out; } mask <<= offset; spin_unlock_irqrestore(hba->host->host_lock, flags); Loading