[RAMEN9610-14313] [COMMON] scsi: ufs: Prevent bug fix.
authorJaeHun Jung <jh0801.jung@samsung.com>
Wed, 10 Apr 2019 06:34:36 +0000 (15:34 +0900)
committerhskang <hs1218.kang@samsung.com>
Sun, 21 Apr 2019 09:10:14 +0000 (18:10 +0900)
Change-Id: I3d6ac23bdaef1123ac82f9b6cbb22428c917a606
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
drivers/scsi/ufs/ufshcd.c

index 49f00970c32b87aa3c74e51cc1ff9c93d401045e..4a025118a553b04ddb4092139b0590c80dc72f50 100644 (file)
@@ -5426,7 +5426,7 @@ out:
 static void ufshcd_err_handler(struct work_struct *work)
 {
        struct ufs_hba *hba;
-       struct ufs_vreg_info *info = &hba->vreg_info;
+       struct ufs_vreg_info *info;
        struct exynos_ufs *ufs;
        unsigned long flags;
        u32 err_xfer = 0;
@@ -5436,6 +5436,7 @@ static void ufshcd_err_handler(struct work_struct *work)
        bool needs_reset = false;
 
        hba = container_of(work, struct ufs_hba, eh_work);
+       info = &hba->vreg_info;
 
        pm_runtime_get_sync(hba->dev);
        ufshcd_hold(hba, false);