Changeset 42428


Ignore:
Timestamp:
2014-09-06T19:51:44+02:00 (3 years ago)
Author:
nbd
Message:

ar71xx: fix off-by-one error in packet descriptor splitting (patch from #13072)

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

    r42333 r42428  
    705705                if (cur_len > split) { 
    706706                        cur_len = split; 
    707                         if (len < split + 4) 
     707 
     708                        /* 
     709                         * TX will hang if DMA transfers <= 4 bytes, 
     710                         * make sure next segment is more than 4 bytes long. 
     711                         */ 
     712                        if (len <= split + 4) 
    708713                                cur_len -= 4; 
    709714                } 
Note: See TracChangeset for help on using the changeset viewer.