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>
This commit is contained in:
Gurchetan Singh 2025-05-08 10:16:55 -07:00 committed by Marge Bot
parent b7d2cdd2b4
commit 03a35024a6

View file

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