| commit | 03a35024a6dae02cc1e03245d3ac8aea4756c39a | [log] [tgz] |
|---|---|---|
| author | Gurchetan Singh <gurchetansingh@chromium.org> | Thu May 08 10:16:55 2025 -0700 |
| committer | Marge Bot <marge-bot@fdo.invalid> | Thu May 08 18:29:03 2025 +0000 |
| tree | 8769ecda476fa01c8fa3ac2d97321720f865043f | |
| parent | b7d2cdd2b42c4a25eca42b609abb91db00013042 [diff] |
gfxstream: make sure by default descriptor is negative Otherwise, another valid fd may be closed. Cc: mesa-stable Reviewed-by: Aaron Ruby <aruby@qnx.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34885>
diff --git a/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h b/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h index 734034f..4c2341a 100644 --- a/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h +++ b/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h
@@ -73,7 +73,7 @@ virtual bool getPciBusInfo(VirtGpuPciBusInfo* pciBusInfo) override; private: - int64_t mDeviceHandle; + int64_t mDeviceHandle = -1; struct VirtGpuCaps mCaps; int openDevice();