Changes in / [e950803:bd81386] in mainline


Ignore:
Location:
uspace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.c

    re950803 rbd81386  
    294294
    295295        /* Allow 1:1 or small-to-large block size translation */
    296         if (cache->lblock_size % devcon->pblock_size != 0) {
    297                 free(cache);
     296        if (cache->lblock_size % devcon->pblock_size != 0)
    298297                return ENOTSUP;
    299         }
    300298
    301299        cache->blocks_cluster = cache->lblock_size / devcon->pblock_size;
     
    438436                        if (!b->data) {
    439437                                free(b);
    440                                 b = NULL;
    441438                                goto recycle;
    442439                        }
     
    566563        assert(devcon);
    567564        assert(devcon->cache);
    568         assert(block->refcnt >= 1);
    569565
    570566        cache = devcon->cache;
     
    626622                        unsigned long key = block->lba;
    627623                        hash_table_remove(&cache->block_hash, &key, 1);
     624                        free(block);
    628625                        free(block->data);
    629                         free(block);
    630626                        cache->blocks_cached--;
    631627                        fibril_mutex_unlock(&cache->lock);
  • uspace/lib/c/generic/async.c

    re950803 rbd81386  
    294294}
    295295
     296/** Connection hash table removal callback function.
     297 *
     298 * This function is called whenever a connection is removed from the connection
     299 * hash table.
     300 *
     301 * @param item Connection hash table item being removed.
     302 *
     303 */
    296304static void conn_remove(link_t *item)
    297305{
     306        free(hash_table_get_instance(item, connection_t, link));
    298307}
    299308
     
    638647                ipc_answer_0(FIBRIL_connection->close_callid, EOK);
    639648       
    640         free(FIBRIL_connection);
    641649        return 0;
    642650}
  • uspace/srv/devman/devman.c

    re950803 rbd81386  
    10631063        if (info != NULL) {
    10641064                memset(info, 0, sizeof(dev_class_info_t));
    1065                 link_initialize(&info->dev_classes);
    1066                 link_initialize(&info->devmap_link);
    1067                 link_initialize(&info->link);
     1065                list_initialize(&info->dev_classes);
     1066                list_initialize(&info->devmap_link);
     1067                list_initialize(&info->link);
    10681068        }
    10691069       
  • uspace/srv/devmap/devmap.c

    re950803 rbd81386  
    423423         */
    424424        list_initialize(&driver->devices);
    425 
    426         link_initialize(&driver->drivers);
     425        list_initialize(&(driver->drivers));
    427426       
    428427        fibril_mutex_lock(&drivers_list_mutex);
     
    539538        }
    540539       
    541         link_initialize(&device->devices);
    542         link_initialize(&device->driver_devices);
     540        list_initialize(&(device->devices));
     541        list_initialize(&(device->driver_devices));
    543542       
    544543        /* Check that device is not already registered */
     
    943942        }
    944943       
    945         link_initialize(&device->devices);
    946         link_initialize(&device->driver_devices);
     944        list_initialize(&(device->devices));
     945        list_initialize(&(device->driver_devices));
    947946       
    948947        /* Get unique device handle */
  • uspace/srv/fs/devfs/devfs_ops.c

    re950803 rbd81386  
    130130{
    131131        devfs_node_t *node = (devfs_node_t *) pfn->data;
    132         int ret;
    133132       
    134133        if (node->handle == 0) {
     
    146145                               
    147146                                if (str_cmp(devs[pos].name, component) == 0) {
    148                                         ret = devfs_node_get_internal(rfn, DEV_HANDLE_NAMESPACE, devs[pos].handle);
    149147                                        free(devs);
    150                                         return ret;
     148                                        return devfs_node_get_internal(rfn, DEV_HANDLE_NAMESPACE, devs[pos].handle);
    151149                                }
    152150                        }
     
    164162                                for (pos = 0; pos < count; pos++) {
    165163                                        if (str_cmp(devs[pos].name, component) == 0) {
    166                                                 ret = devfs_node_get_internal(rfn, DEV_HANDLE_DEVICE, devs[pos].handle);
    167164                                                free(devs);
    168                                                 return ret;
     165                                                return devfs_node_get_internal(rfn, DEV_HANDLE_DEVICE, devs[pos].handle);
    169166                                        }
    170167                                }
     
    187184                        for (pos = 0; pos < count; pos++) {
    188185                                if (str_cmp(devs[pos].name, component) == 0) {
    189                                         ret = devfs_node_get_internal(rfn, DEV_HANDLE_DEVICE, devs[pos].handle);
    190186                                        free(devs);
    191                                         return ret;
     187                                        return devfs_node_get_internal(rfn, DEV_HANDLE_DEVICE, devs[pos].handle);
    192188                                }
    193189                        }
Note: See TracChangeset for help on using the changeset viewer.