linux/drivers/net/ethernet/broadcom/genet
Florian Fainelli cf377d886f net: bcmgenet: fix off-by-one in incrementing read pointer
Commit b629be5c83 ("net: bcmgenet: check
harder for out of memory conditions") moved the increment of the local
read pointer *before* reading from the hardware descriptor using
dmadesc_get_length_status(), which creates an off-by-one situation.

Fix this by moving again the read_ptr increment after we have read the
hardware descriptor to get both the control block and the read pointer
back in sync.

Fixes: b629be5c83 ("net: bcmgenet: check harder for out of memory conditions")
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-10 15:39:15 -04:00
..
bcmgenet_wol.c net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00
bcmgenet.c net: bcmgenet: fix off-by-one in incrementing read pointer 2014-10-10 15:39:15 -04:00
bcmgenet.h net: bcmgenet: fix Tx ring priority programming 2014-10-07 13:08:43 -04:00
bcmmii.c net: bcmgenet: improve bcmgenet_mii_setup() 2014-10-06 00:18:09 -04:00
Makefile net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00