diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-05-12 19:06:56 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-17 09:11:23 +0200 |
commit | 2d6b1d403ebeba464cc43b768f42fb2a612d9b99 (patch) | |
tree | 1305fd4e47a4e639879773a4083c6f85fdeb4e34 /drivers/gpu/drm/qxl | |
parent | f9628c2a8ecce1d9fbd74893e42bb0edd4c30fd4 (diff) | |
download | blackbird-op-linux-2d6b1d403ebeba464cc43b768f42fb2a612d9b99.tar.gz blackbird-op-linux-2d6b1d403ebeba464cc43b768f42fb2a612d9b99.zip |
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
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_fb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c index 739a08cddf6d..5ea57f6320b8 100644 --- a/drivers/gpu/drm/qxl/qxl_fb.c +++ b/drivers/gpu/drm/qxl/qxl_fb.c @@ -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]); |