Changeset 8013637 in mainline for uspace/drv/bus


Ignore:
Timestamp:
2012-07-20T13:51:28Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8fccd42
Parents:
c5bff3c (diff), 7030bc9 (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:

More mainline changes.

Location:
uspace/drv/bus
Files:
4 edited

Legend:

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

    rc5bff3c r8013637  
    201201
    202202        isa_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(isa_fun_t));
    203         if (fun == NULL)
     203        if (fun == NULL) {
     204                ddf_fun_destroy(fnode);
    204205                return NULL;
     206        }
    205207
    206208        fibril_mutex_initialize(&fun->mutex);
     
    552554
    553555        isa_fun_t *fun = isa_fun_create(isa, fun_name);
     556        free(fun_name);
    554557        if (fun == NULL) {
    555                 free(fun_name);
    556558                return NULL;
    557559        }
  • uspace/drv/bus/usb/ohci/utils/malloc32.h

    rc5bff3c r8013637  
    3737#include <assert.h>
    3838#include <malloc.h>
     39#include <unistd.h>
    3940#include <errno.h>
    4041#include <mem.h>
  • uspace/drv/bus/usb/uhci/utils/malloc32.h

    rc5bff3c r8013637  
    3636
    3737#include <assert.h>
     38#include <unistd.h>
    3839#include <errno.h>
    3940#include <malloc.h>
     
    9899static inline void * get_page(void)
    99100{
    100         void *address = as_area_create((void *) -1, UHCI_REQUIRED_PAGE_SIZE,
     101        void *address = as_area_create(AS_AREA_ANY, UHCI_REQUIRED_PAGE_SIZE,
    101102            AS_AREA_READ | AS_AREA_WRITE);
    102         if (address == (void *) -1)
     103        if (address == AS_MAP_FAILED)
    103104                return NULL;
    104105       
  • uspace/drv/bus/usb/usbmast/main.c

    rc5bff3c r8013637  
    302302       
    303303        (void) async_share_out_finalize(callid, &comm_buf);
    304         if (comm_buf == (void *) -1) {
     304        if (comm_buf == AS_MAP_FAILED) {
    305305                async_answer_0(callid, EHANGUP);
    306306                return;
Note: See TracChangeset for help on using the changeset viewer.