devfs: fix device not found error returned

This commit is contained in:
Matheus
2023-05-04 21:21:24 -03:00
parent 863b85bab6
commit c30dbc7c8f
+1 -1
View File
@@ -282,7 +282,7 @@ int devfs_getnode(vnode_t *physical, int major, int minor, vnode_t **node) {
int err = hashtable_get(&devtable, &r, key, sizeof(key));
spinlock_release(&tablelock);
if (err)
return err;
return err == ENOENT ? ENXIO : err;
devnode_t *newnode = slab_allocate(nodecache);
if (newnode)