mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
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:
parent
b7d2cdd2b4
commit
03a35024a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue