Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r0db0df2 r6f5995f  
    11/*
     2 * Copyright (c) 2026 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * All rights reserved.
     
    276277        ht_link_t *lnk = hash_table_find(&nodes, &key);
    277278
    278         if (lnk) {
    279                 tmpfs_node_t *nodep;
    280                 nodep = hash_table_get_inst(lnk, tmpfs_node_t, nh_link);
    281                 *rfn = FS_NODE(nodep);
    282         } else {
     279        if (lnk == NULL) {
    283280                *rfn = NULL;
    284         }
     281                return EBADF;
     282        }
     283
     284        tmpfs_node_t *nodep;
     285        nodep = hash_table_get_inst(lnk, tmpfs_node_t, nh_link);
     286        *rfn = FS_NODE(nodep);
    285287        return EOK;
    286288}
     
    320322
    321323        rc = tmpfs_root_get(&rootfn, service_id);
    322         assert(rc == EOK);
    323         if (!rootfn)
     324        assert(rc == EOK || rc == EBADF);
     325        if (rootfn == NULL)
    324326                nodep->index = TMPFS_SOME_ROOT;
    325327        else
Note: See TracChangeset for help on using the changeset viewer.