Changeset 1d4148e in mainline for uspace/drv/bus/usb/xhci/commands.c
- Timestamp:
- 2017-08-20T17:09:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d271f78
- Parents:
- 9304b66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.c
r9304b66 r1d4148e 108 108 */ 109 109 cmd->has_owner = true; 110 cmd->owns_trb = false; 110 111 111 112 return cmd; … … 118 119 if (cmd->ictx) 119 120 free32(cmd->ictx); 120 if (cmd-> trb)121 if (cmd->owns_trb && cmd->trb) 121 122 free32(cmd->trb); 122 123 … … 550 551 command->trb = malloc32(sizeof(xhci_trb_t)); 551 552 xhci_trb_copy(command->trb, command_trb); 553 command->owns_trb = true; 552 554 } 553 555
Note:
See TracChangeset
for help on using the changeset viewer.