drm/msm/dpu: fix unitialized variable error
PATCH 1/1 drm/msm/dpu: fix unitialized variable error
From: Rob Clark <[email protected]>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817 dpu_crtc_enable() error: uninitialized symbol 'request_bandwidth'.
Reported-by kernel test robot <[email protected]>
Signed-off-by Rob Clark <[email protected]>
--- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +1 -1
@@ -827,7 +827,7 @@ static void dpu_crtc_enable(struct drm_crtc *crtc, {struct dpu_crtc *dpu_crtc;struct drm_encoder *encoder; -bool request_bandwidth; +bool request_bandwidth = false;if (!crtc) {DPU_ERROR ("invalid crtc\n" );
Signature · 6 lines
2.26.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Rob Clark
From: Rob Clark <[email protected]>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817dpu_crtc_enable()error: uninitialized symbol 'request_bandwidth'.Reported-by kernel test robot <[email protected]>
Reviewed-by Sean Paul <[email protected]>
Quoted 21 lines
Signed-off-by Rob Clark <[email protected]>--- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +1
-2@@ -827,7 +827,7 @@ static void dpu_crtc_enable(struct drm_crtc *crtc, {struct dpu_crtc *dpu_crtc;struct drm_encoder *encoder; -bool request_bandwidth; +bool request_bandwidth = false;if (!crtc) {DPU_ERROR ("invalid crtc\n" ); --2.26.2