• Ivo van Doorn's avatar
    rt2x00: Preserve descriptor information after memmove() · 70a96109
    Ivo van Doorn authored
    Due to usage of memmove() in rt2x00usb the descriptor can become
    corrupted because it is being overwritten by the data part.
    Overall having the descriptor in front of the frame is a bad idea,
    we can however use the skb->cb array for this task, since that
    contains more then enough room to hold the entire descriptor and
    preserve the information long enough.
    
    After this we can also cleanup the alignment code a bit to make it
    work a bit more flexible to allow for all kinds of odd header lengths.
    Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    70a96109
rt73usb.c 65.9 KB