diff options
author | Simon Guinot <simon.guinot@sequanux.org> | 2015-09-15 23:41:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-16 00:54:50 +0300 |
commit | daf158d0d544cec80b7b30deff8cfc59a6e17610 (patch) | |
tree | b65d7f9d8dbbecc8b7cdf09b048824390322fe94 /security/smack | |
parent | 244b7f4324895e7c796cc94e8a8f70288ed20bdc (diff) | |
download | linux-daf158d0d544cec80b7b30deff8cfc59a6e17610.tar.xz |
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 'security/smack')
0 files changed, 0 insertions, 0 deletions