• Clemens Ladisch's avatar
    firewire: prevent dropping of completed iso packet header data · 18d62711
    Clemens Ladisch authored
    The buffer for the header data of completed iso packets has a fixed
    size, so it is possible to configure a stream with a big interval
    between interrupt packets or with big headers so that this buffer would
    overflow.  Previously, ohci.c would drop any data that would not fit,
    but this could make unsuspecting applications believe that fewer than
    the actual number of packets have completed.
    
    Instead of dropping data, add calls to flush_iso_completion() so that
    there are as many events as needed to report all of the data.
    Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
    Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
    18d62711
ohci.c 101 KB