mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/psvr: Don't report created device if creation failed
This commit is contained in:
parent
ea404a265b
commit
92d94ddcc7
|
@ -114,6 +114,10 @@ psvr_prober_autoprobe(struct xrt_auto_prober *xap,
|
|||
|
||||
hid_free_enumeration(devs);
|
||||
|
||||
if (!dev) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
out_xdevs[0] = dev;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue