]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/gtk: Check if fence_fd is equal to or greater than 0
authorDongwon Kim <dongwon.kim@intel.com>
Wed, 8 May 2024 17:53:58 +0000 (10:53 -0700)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 14 May 2024 13:14:12 +0000 (17:14 +0400)
commite4e62514e3cc2fc9dbae44af8b80f61c730beab4
tree3090d355c6ce26a369080761194b1d3487f42228
parent77bf310084dad38b3a2badf01766c659056f1cf2
ui/gtk: Check if fence_fd is equal to or greater than 0

'fence_fd' needs to be validated always before being referenced
And the passing condition should include '== 0' as 0 is a valid
value for the file descriptor.

Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Message-Id: <20240508175403.3399895-2-dongwon.kim@intel.com>
ui/gtk-egl.c
ui/gtk-gl-area.c
ui/gtk.c