summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-19 15:34:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-19 15:34:09 +0100
commit2dc93b2a6c832ce8b972de90d09080e860dcd40f (patch)
treecfa22bfe5a61bb17bafcece473e04d3e5f82b54c /src/sna/sna_video_overlay.c
parent06634604abf15fdd27dd007fcf81595da994146b (diff)
sna: Check results from syscalls
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_overlay.c')
-rw-r--r--src/sna/sna_video_overlay.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna_video_overlay.c b/src/sna/sna_video_overlay.c
index 612711f9..d47f7458 100644
--- a/src/sna/sna_video_overlay.c
+++ b/src/sna/sna_video_overlay.c
@@ -148,7 +148,10 @@ static void sna_video_overlay_off(struct sna *sna)
request.flags = 0;
- drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_OVERLAY_PUT_IMAGE, &request);
+ /* Not much we can do if the hardware dies before we turn it off! */
+ (void)drmIoctl(sna->kgem.fd,
+ DRM_IOCTL_I915_OVERLAY_PUT_IMAGE,
+ &request);
}
static void sna_video_overlay_stop(ScrnInfoPtr scrn,