mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue