Skip to content

Commit e79751f

Browse files
Jessica Zhangrobclark
authored andcommitted
drm/msm/dpu: Clear perf params before calculating bw
To prevent incorrect BW calculation, zero out dpu_core_perf_params before it is passed into dpu_core_perf_aggregate(). Signed-off-by: Jessica Zhang <[email protected]> Fixes: 795aef6 ("drm/msm/dpu: remove duplicate code calculating sum of bandwidths") Reviewed-by: Abhinav Kumar <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/641278/ Signed-off-by: Rob Clark <[email protected]>
1 parent 06dd5d8 commit e79751f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ int dpu_core_perf_crtc_check(struct drm_crtc *crtc,
164164
u32 bw, threshold;
165165
struct dpu_crtc_state *dpu_cstate;
166166
struct dpu_kms *kms;
167-
struct dpu_core_perf_params perf;
167+
struct dpu_core_perf_params perf = { 0 };
168168

169169
if (!crtc || !state) {
170170
DPU_ERROR("invalid crtc\n");

0 commit comments

Comments
 (0)