From 2dc93b2a6c832ce8b972de90d09080e860dcd40f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 19 Jun 2012 15:34:09 +0100 Subject: sna: Check results from syscalls Reported-by: Zdenek Kabelac Signed-off-by: Chris Wilson --- src/sna/sna_video_overlay.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sna/sna_video_overlay.c') 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, -- cgit v1.2.3