mesa/src/gbm/main
Nicholas Bishop 2d05ba2ca0 gbm: return appropriate error when queryImage() fails
Change gbm_dri_bo_get_fd to check the return value of queryImage and
return -1 (an invalid file descriptor) if an error occurs.

Update the comment for gbm_bo_get_fd to return -1, since (apart from the
above) we've already return -1 on error.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Nicholas Bishop <nbishop@neverware.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
[Emil Velikov: Split from larger patch, polish coding style, cc stable]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-09-27 13:37:21 +01:00
..
backend.c mesa/gbm: Resolve GCC sign-compare warning. 2015-08-18 11:34:43 -07:00
backend.h Add gbm (generic/graphics buffer manager) 2011-06-23 21:07:17 +02:00
common_drm.h Add gbm (generic/graphics buffer manager) 2011-06-23 21:07:17 +02:00
gbm.c gbm: return appropriate error when queryImage() fails 2016-09-27 13:37:21 +01:00
gbm.h gbm: add missing R8 and GR88 formats 2016-09-07 11:30:41 -04:00
gbm.pc.in automake: src/gbm 2012-01-23 15:18:12 -05:00
gbmint.h gbm: Removed unused function. 2016-08-01 09:11:14 -07:00