From 03a35024a6dae02cc1e03245d3ac8aea4756c39a Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Thu, 8 May 2025 10:16:55 -0700 Subject: [PATCH] gfxstream: make sure by default descriptor is negative Otherwise, another valid fd may be closed. Cc: mesa-stable Reviewed-by: Aaron Ruby --- src/gfxstream/guest/platform/linux/LinuxVirtGpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h b/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h index 734034f1e5e..4c2341a8166 100644 --- a/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h +++ b/src/gfxstream/guest/platform/linux/LinuxVirtGpu.h @@ -73,7 +73,7 @@ class LinuxVirtGpuDevice : public VirtGpuDevice { virtual bool getPciBusInfo(VirtGpuPciBusInfo* pciBusInfo) override; private: - int64_t mDeviceHandle; + int64_t mDeviceHandle = -1; struct VirtGpuCaps mCaps; int openDevice();