mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
qxl: catch qxlfb_create_pinned_object failures
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1463072816-11788-1-git-send-email-kraxel@redhat.com
This commit is contained in:
parent
f9628c2a8e
commit
2d6b1d403e
@ -251,6 +251,9 @@ static int qxlfb_create(struct qxl_fbdev *qfbdev,
|
||||
mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth);
|
||||
|
||||
ret = qxlfb_create_pinned_object(qfbdev, &mode_cmd, &gobj);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
qbo = gem_to_qxl_bo(gobj);
|
||||
QXL_INFO(qdev, "%s: %dx%d %d\n", __func__, mode_cmd.width,
|
||||
mode_cmd.height, mode_cmd.pitches[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user