drm/hyperv: Added error message for fb size greater then allocated
Subsystems (5)
Saurabh Sengar
maintainerPATCH 1/1 drm/hyperv: Added error message for fb size greater then allocated
From: saurabh <[email protected]>
Added error message when the size of requested framebuffer is more then the allocated size by vmbus mmio region for framebuffer
Signed-off-by saurabh <[email protected]>
--- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +4 -1
@@ -123,8 +123,11 @@ static int hyperv_pipe_check(struct drm_simple_display_pipe *pipe,if (fb->format->format !=DRM_FORMAT_XRGB8888 )return -EINVAL ; -if (fb->pitches[0 ] * fb->height > hv->fb_size) +if (fb->pitches[0 ] * fb->height > hv->fb_size) { +drm_err (&hv->dev,"hv->hdev, fb size requested by process %s for %d X %d (pitch %d) is greater then allocated size %ld\n" , + current->comm, fb->width, fb->height, fb->pitches[0 ], hv->fb_size);return -EINVAL ; + }return 0 ; }
Signature · 1 line
2.31.1