• François Romieu's avatar
    [netdrvr r8169] fix TX descriptor overflow · 5e8d06fe
    François Romieu authored
    Please apply attached patch.
    
    Without patch, bogus descriptors are parsed as soon as
    tp->cur_tx%NUM_TX_DESC + (tp->cur_tx - tp->dirty_tx) > NUM_TX_DESC
    (assume for instance tp->dirty_tx = NUM_TX_DESC/2,
    tp->cur_tx = NUM_TX_DESC - 1 and watch entry go beyond NUM_TX_DESC).
    
    Missing stats update is fixed by the patch btw.
    5e8d06fe
r8169.c 27.8 KB