Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 60f7c590 in mainline


Ignore:
Timestamp:
2017-07-24T00:21:29Z (3 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
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.