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();