]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 27 May 2024 04:37:34 +0000 (07:37 +0300)
commitbbfe1d4e8b0a46ccde5039aca9355f8b7fd18ae5
treebec96271582bc0961b8a2b88a41ab6f886ea6e2a
parentba27e719763673057a3aa9a2581272cdbedb7f6c
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>
(cherry picked from commit e4e62514e3cc2fc9dbae44af8b80f61c730beab4)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/gtk-egl.c
ui/gtk-gl-area.c
ui/gtk.c