Changeset ee28ae66 in mainline


Ignore:
Timestamp:
2017-08-20T17:51:44Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b415cc
Parents:
d271f78
Message:

Fixed deallocation in case of command init failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hc.c

    rd271f78 ree28ae66  
    218218
    219219        if ((err = xhci_init_commands(hc)))
    220                 goto err_event_ring;
     220                goto err_scratch;
    221221
    222222        if ((err = xhci_rh_init(&hc->rh)))
    223                 goto err_rh;
    224 
    225         return EOK;
    226 
    227 err_rh:
     223                goto err_cmd;
     224
     225        return EOK;
     226
     227err_cmd:
    228228        xhci_fini_commands(hc);
     229err_scratch:
     230        xhci_scratchpad_free(hc);
    229231err_event_ring:
    230232        xhci_event_ring_fini(&hc->event_ring);
Note: See TracChangeset for help on using the changeset viewer.