diff options
author | Simon Guinot <simon.guinot@sequanux.org> | 2015-09-15 22:41:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-15 14:54:50 -0700 |
commit | daf158d0d544cec80b7b30deff8cfc59a6e17610 (patch) | |
tree | b65d7f9d8dbbecc8b7cdf09b048824390322fe94 /net/core/rtnetlink.c | |
parent | 244b7f4324895e7c796cc94e8a8f70288ed20bdc (diff) |
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>
Diffstat (limited to 'net/core/rtnetlink.c')
0 files changed, 0 insertions, 0 deletions