Changeset c46c356 in mainline for uspace/drv/bus/usb/xhci/commands.c


Ignore:
Timestamp:
2017-07-23T19:23:52Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2e7692f
Parents:
e50bdd92
Message:

Added command list deallocation during hc finalization.

File:
1 edited

Legend:

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

    re50bdd92 rc46c356  
    5050        list_initialize(&hc->commands);
    5151        return EOK;
     52}
     53
     54void xhci_fini_commands(xhci_hc_t *hc)
     55{
     56        // Note: Untested.
     57        assert(hc);
     58
     59        // We assume that the hc is dying/stopping, so we ignore
     60        // the ownership of the commands.
     61        list_foreach(hc->commands, link, xhci_cmd_t, cmd) {
     62                xhci_free_command(cmd);
     63        }
    5264}
    5365
Note: See TracChangeset for help on using the changeset viewer.