Changeset 2b3dd78 in mainline for uspace/drv/bus


Ignore:
Timestamp:
2018-01-31T12:02:00Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5595841
Parents:
a0a9cc2 (diff), 14d789c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/master' into forwardport

change tmon includes because of new stdlib

Location:
uspace/drv/bus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    ra0a9cc2 r2b3dd78  
    279279        errno_t rc;
    280280        size_t nread;
    281         struct stat st;
     281        vfs_stat_t st;
    282282
    283283        rc = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ, &fd);
  • uspace/drv/bus/usb/vhc/hub/virthub.c

    ra0a9cc2 r2b3dd78  
    4242#include <stdio.h>
    4343#include <stdlib.h>
     44#include <str.h>
    4445#include <ddf/driver.h>
    4546
     
    155156        dev->descriptors = &descriptors;
    156157        dev->address = 0;
    157         dev->name = str_dup(name);
    158         if (!dev->name)
     158
     159        char *n = str_dup(name);
     160        if (!n)
    159161                return ENOMEM;
    160162
    161163        hub_t *hub = malloc(sizeof(hub_t));
    162164        if (hub == NULL) {
    163                 free(dev->name);
     165                free(n);
    164166                return ENOMEM;
    165167        }
    166168
     169        dev->name = n;
    167170        hub_init(hub);
    168171        dev->device_data = hub;
Note: See TracChangeset for help on using the changeset viewer.