• I
    rt2x00: Fix segementation fault · d15cfc3a
    Ivo van Doorn 提交于
    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: NIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    d15cfc3a
rt2x00usb.c 17.9 KB