drm/msm/dsi: dsi_phy_28nm_8960: fix uninitialized variable access
PATCH 1/1 drm/msm/dsi: dsi_phy_28nm_8960: fix uninitialized variable access
The parent_name initialization was lost in refactoring, restore it now.
Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code")
Reported-by kernel test robot <[email protected]>
Signed-off-by Dmitry Baryshkov <[email protected]>
--- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c +4 -0
@@ -405,6 +405,10 @@ static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **provif (!vco_name)return -ENOMEM ; + parent_name =devm_kzalloc (dev,32 ,GFP_KERNEL ); +if (!parent_name) +return -ENOMEM ; + clk_name =devm_kzalloc (dev,32 ,GFP_KERNEL );if (!clk_name)return -ENOMEM ;
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Dmitry Baryshkov
The
parent_nameinitialization was lost in refactoring, restore it now.Fixes 5d13459650b3 ("drm/msm/dsi: push provided clocks handling intoa generic code")
Reported-by kernel test robot <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>
Reviewed-by Abhinav Kumar <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c +4
-0@@ -405,6 +405,10 @@ static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **provif (!vco_name)return -ENOMEM ; + parent_name =devm_kzalloc (dev,32 ,GFP_KERNEL ); +if (!parent_name) +return -ENOMEM ; + clk_name =devm_kzalloc (dev,32 ,GFP_KERNEL );if (!clk_name)
Quoted 1 line
return
-ENOMEM;
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel