]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/libio-io/lib/src/io.cc
update
[l4.git] / l4 / pkg / libio-io / lib / src / io.cc
index c6d42784bc9beea3f10e193a0fa500b9b2c15882..2d7e93d7ea242c3688cbdffd3e2d711917876ff6 100644 (file)
@@ -232,6 +232,9 @@ int
 l4io_iterate_devices(l4io_device_handle_t *devhandle,
                      l4io_device_t *dev, l4io_resource_handle_t *reshandle)
 {
+  if (!vbus().is_valid())
+    return -L4_ENOENT;
+
   if (reshandle)
     *reshandle = 0;