Skip to content

Commit 73811c9

Browse files
Wei Yongjunmartinkpetersen
authored andcommitted
scsi: ufs: Fix error return code in ufshcd_init()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Reviewed-by: Kiwoong Kim <kwmad.kim@samsung.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 6861285 commit 73811c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6503,6 +6503,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq)
65036503
if (IS_ERR(hba->devfreq)) {
65046504
dev_err(hba->dev, "Unable to register with devfreq %ld\n",
65056505
PTR_ERR(hba->devfreq));
6506+
err = PTR_ERR(hba->devfreq);
65066507
goto out_remove_scsi_host;
65076508
}
65086509
/* Suspend devfreq until the UFS device is detected */

0 commit comments

Comments
 (0)