[PATCH] net: mvneta: fix DMA buffer unmapping in mvneta_rx()

David Miller davem at davemloft.net
Tue Sep 15 14:55:20 PDT 2015


From: Simon Guinot <simon.guinot at sequanux.org>
Date: Tue, 15 Sep 2015 22:41:21 +0200

> 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 at igneous.io>
> Signed-off-by: Simon Guinot <simon.guinot at sequanux.org>
> Fixes: a84e32894191 ("net: mvneta: fix refilling for Rx DMA buffers")

Applied, thanks.



More information about the linux-arm-kernel mailing list