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:
138b87f
)
drm/atomic: Add missing drm_atomic_state_clear to atomic_remove_fb
author
Maarten Lankhorst
<
[email protected]
>
Thu, 29 Jun 2017 11:59:54 +0000
(13:59 +0200)
committer
Maarten Lankhorst
<
[email protected]
>
Mon, 3 Jul 2017 08:31:37 +0000
(10:31 +0200)
All atomic state should be cleared when drm_modeset_backoff() is
called, because it drops all locks and the state becomes invalid.
The call to drm_atomic_state_clear was missing in atomic_remove_fb,
so add the missing call there.
Signed-off-by: Maarten Lankhorst <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
Fixes: db8f6403e88a ("drm: Convert drm_framebuffer_remove to atomic, v4.")
Cc:
[email protected]
# v4.12-rc1+
drivers/gpu/drm/drm_framebuffer.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_framebuffer.c
b/drivers/gpu/drm/drm_framebuffer.c
index fc8ef42203ec000c18c6206dcf141d21f04f79b1..b3ef4f1c2630fd5973132f43c809b1dfe05a169c 100644
(file)
--- a/
drivers/gpu/drm/drm_framebuffer.c
+++ b/
drivers/gpu/drm/drm_framebuffer.c
@@
-832,6
+832,7
@@
unlock:
drm_atomic_clean_old_fb(dev, plane_mask, ret);
if (ret == -EDEADLK) {
+ drm_atomic_state_clear(state);
drm_modeset_backoff(&ctx);
goto retry;
}