projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9628c2
)
qxl: catch qxlfb_create_pinned_object failures
author
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 12 May 2016 17:06:56 +0000
(19:06 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 17 May 2016 07:11:23 +0000
(09:11 +0200)
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
drivers/gpu/drm/qxl/qxl_fb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_fb.c
b/drivers/gpu/drm/qxl/qxl_fb.c
index 739a08cddf6dccb457f1042749f5a8156ff34d94..5ea57f6320b880e78b6183965751198350134e3e 100644
(file)
--- 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]);