diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-03-20 14:45:32 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-03-20 15:28:28 +0900 |
commit | 3c51f6df488bb9839e52d77d4d383589e7f54081 (patch) | |
tree | 7d89ef165d23464be7fab5c3ad7574935d944aa9 | |
parent | 42364e09ebc5df3bdd40cd3ea11e3bfebd5ca828 (diff) | |
download | libdrm-3c51f6df488bb9839e52d77d4d383589e7f54081.tar.gz libdrm-3c51f6df488bb9839e52d77d4d383589e7f54081.tar.bz2 libdrm-3c51f6df488bb9839e52d77d4d383589e7f54081.zip |
nexell: fix to check return of drmIoctl()submit/tizen/20180322.023158accepted/tizen/unified/20180322.145022
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.c | 5 |
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"); } /** |