• Ivo van Doorn's avatar
    rt2x00: Fix segementation fault · d15cfc3a
    Ivo van Doorn authored
    The queue_end() macro points to 1 position after the
    queue, which means that if we want to know if queue
    is at the end of the queue we should first increment
    the position and then check if it is a valid entry.
    
    This fixes a segmentation fault which only occurs when
    the device has enough endpoints to provide a dedicated
    endpoint for all TX queues (which likely won't happen
    for rt2500usb and rt73usb, but will happen for rt2800usb).
    Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    d15cfc3a
rt2x00usb.c 17.9 KB