Changeset 3c594ff9 in mainline


Ignore:
Timestamp:
2014-01-25T19:20:06Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23678f3
Parents:
49dc984
Message:

ehci: mark invalid pointers in TD with terminate flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.c

    r49dc984 r3c594ff9  
    113113        }
    114114
    115         EHCI_MEM32_WR(instance->next, LINK_POINTER_TD(addr_to_phys(next)));
     115        EHCI_MEM32_WR(instance->next, next ?
     116            LINK_POINTER_TD(addr_to_phys(next)) : LINK_POINTER_TERM);
    116117
     118        EHCI_MEM32_WR(instance->alternate, LINK_POINTER_TERM);
    117119        EHCI_MEM32_SET(instance->status, TD_STATUS_ACTIVE_FLAG);
    118120}
Note: See TracChangeset for help on using the changeset viewer.