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


Ignore:
Timestamp:
2017-07-24T00:21:29Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3dc519f
Parents:
eff60ca
Message:

Fixed crashes cause by deallocating statically allocated trbs pointed to by anonymous commands.

File:
1 edited

Legend:

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

    reff60ca r60f7c590  
    450450        if (!command->has_owner) {
    451451                usb_log_debug2("Command has no owner, deallocating.");
     452                command->trb = NULL; // It was statically allocated.
    452453                xhci_free_command(command);
    453454        } else {
Note: See TracChangeset for help on using the changeset viewer.