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 b8d6daf commit ab75a0dCopy full SHA for ab75a0d
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -11122,8 +11122,8 @@ dm_get_plane_scale(struct drm_plane_state *plane_state,
11122
int plane_src_w, plane_src_h;
11123
11124
dm_get_oriented_plane_size(plane_state, &plane_src_w, &plane_src_h);
11125
- *out_plane_scale_w = plane_state->crtc_w * 1000 / plane_src_w;
11126
- *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;
11127
}
11128
11129
/*
0 commit comments