summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2018-03-20 14:45:32 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2018-03-20 15:28:28 +0900
commit3c51f6df488bb9839e52d77d4d383589e7f54081 (patch)
tree7d89ef165d23464be7fab5c3ad7574935d944aa9
parent42364e09ebc5df3bdd40cd3ea11e3bfebd5ca828 (diff)
downloadlibdrm-3c51f6df488bb9839e52d77d4d383589e7f54081.tar.gz
libdrm-3c51f6df488bb9839e52d77d4d383589e7f54081.tar.bz2
libdrm-3c51f6df488bb9839e52d77d4d383589e7f54081.zip
Fix to check return value of drmIoctl(). Change-Id: I456184820278ee38ff1a7e5bba283acb8c2ea99f Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--nexell/nexell_drm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nexell/nexell_drm.c b/nexell/nexell_drm.c
index 2877fd7f..cbc0beca 100644
--- a/nexell/nexell_drm.c
+++ b/nexell/nexell_drm.c
@@ -62,9 +62,12 @@ int nx_alloc_gem(int drm_fd, int size, int flags)
void nx_free_gem(int drm_fd, int gem)
{
struct drm_gem_close arg = {0, };
+ int ret;
arg.handle = gem;
- drmIoctl(drm_fd, DRM_IOCTL_GEM_CLOSE, &arg);
+ ret = drmIoctl(drm_fd, DRM_IOCTL_GEM_CLOSE, &arg);
+ if (ret)
+ perror("DRM_IOCTL_GEM_CLOSE failed\n");
}
/**