uterm_video: check online-state before swapping
Check whether the display is online before swapping buffers in DRM backend. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
ead3172d49
commit
ec6e095a64
@ -363,7 +363,7 @@ static int display_swap(struct uterm_display *disp)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (!display_is_conn(disp) || !video_is_awake(disp->video))
|
||||
if (!display_is_online(disp) || !video_is_awake(disp->video))
|
||||
return -EINVAL;
|
||||
if (disp->dpms != UTERM_DPMS_ON)
|
||||
return -EINVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user