]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: mvneta: fix DMA buffer unmapping in mvneta_rx()
authorSimon Guinot <simon.guinot@sequanux.org>
Tue, 15 Sep 2015 20:41:21 +0000 (22:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 21:54:50 +0000 (14:54 -0700)
commitdaf158d0d544cec80b7b30deff8cfc59a6e17610
treeb65d7f9d8dbbecc8b7cdf09b048824390322fe94
parent244b7f4324895e7c796cc94e8a8f70288ed20bdc
net: mvneta: fix DMA buffer unmapping in mvneta_rx()

This patch fixes a regression introduced by the commit a84e32894191
("net: mvneta: fix refilling for Rx DMA buffers"). Due to this commit
the newly allocated Rx buffers are DMA-unmapped in place of those passed
to the networking stack. Obviously, this causes data corruptions.

This patch fixes the issue by ensuring that the right Rx buffers are
DMA-unmapped.

Reported-by: Oren Laskin <oren@igneous.io>
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Fixes: a84e32894191 ("net: mvneta: fix refilling for Rx DMA buffers")
Cc: <stable@vger.kernel.org> # v3.8+
Tested-by: Oren Laskin <oren@igneous.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c