projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d9747
)
drm: make sure visible is set to false if fb is null
author
Gustavo Padovan
<
[email protected]
>
Fri, 24 Oct 2014 18:00:17 +0000
(19:00 +0100)
committer
Daniel Vetter
<
[email protected]
>
Tue, 4 Nov 2014 22:21:29 +0000
(23:21 +0100)
We can't let visible set true while the fb is null, some places of
the code only check for visible to base its decisions.
Signed-off-by: Gustavo Padovan <
[email protected]
>
Reviewed-by: Ville Syrjälä <
[email protected]
>
Acked-by: Dave Airlie <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/drm_plane_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_plane_helper.c
b/drivers/gpu/drm/drm_plane_helper.c
index 827ec1a3040b202fc025a9d1b8af54e32b67726f..fe4d1fb2376cd488d22974a2710d2b2571fb6122 100644
(file)
--- a/
drivers/gpu/drm/drm_plane_helper.c
+++ b/
drivers/gpu/drm/drm_plane_helper.c
@@
-127,6
+127,11
@@
int drm_plane_helper_check_update(struct drm_plane *plane,
return -ERANGE;
}
+ if (!fb) {
+ *visible = false;
+ return 0;
+ }
+
*visible = drm_rect_clip_scaled(src, dest, clip, hscale, vscale);
if (!*visible)
/*