We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21541bc commit 5225fd2Copy full SHA for 5225fd2
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -11124,8 +11124,8 @@ dm_get_plane_scale(struct drm_plane_state *plane_state,
11124
int plane_src_w, plane_src_h;
11125
11126
dm_get_oriented_plane_size(plane_state, &plane_src_w, &plane_src_h);
11127
- *out_plane_scale_w = plane_state->crtc_w * 1000 / plane_src_w;
11128
- *out_plane_scale_h = plane_state->crtc_h * 1000 / plane_src_h;
+ *out_plane_scale_w = plane_src_w ? plane_state->crtc_w * 1000 / plane_src_w : 0;
+ *out_plane_scale_h = plane_src_h ? plane_state->crtc_h * 1000 / plane_src_h : 0;
11129
}
11130
11131
/*
0 commit comments