From: Florian Fainelli Date: Fri, 10 Oct 2014 17:51:52 +0000 (-0700) Subject: net: bcmgenet: fix off-by-one in incrementing read pointer X-Git-Tag: fixes-against-v3.18-rc2~115^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf377d886f7944a5ccdbd164b89949e13617b096;p=pandora-kernel.git net: bcmgenet: fix off-by-one in incrementing read pointer Commit b629be5c8399d7c423b92135eb43a86c924d1cbc ("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: b629be5c8399 ("net: bcmgenet: check harder for out of memory conditions") Signed-off-by: Jaedon Shin Signed-off-by: Florian Fainelli Acked-by: Petri Gynther Signed-off-by: David S. Miller --- Reading git-diff-tree failed